Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Super mysterious webpage bug

I made this program recently that emulates the signup/login process. I recently renamed login_process.php to process_login.php and signup_process.php to process_signup.php. I then upadated the formaction attributes of the submit inputs accordingly, and saved all the files. I go back later to test it, and when I click a button, I get 404 Not Found "The requested URL / ... was not found on this server" error. This error uses the OLD name of the target page, and when I close that and open the preview again to the starter form page, right click, and click "View page source", the formaction attributes of the submit inputs are shown to have the value of the old name of the target page as well, even though they are correct in workspaces! I downloaded the workspace hoping to put it here, but there doesn't seem to be a way to do that (someone let me know if I'm wrong). I'll try to see if I can upload it to GitHub or MediaFire and get the shareable link to put here asap. EDIT: Here is the MediaFire link

1 Answer

Codin - Codesmite
Codin - Codesmite
8,600 Points

I downloaded and tested your project and when using login and signup form the form action targeted me to the correct locations for both buttons.

Maybe try clearing your browsers cache: https://kb.iu.edu/d/ahic

That worked. :) Thanks!