Jump to content

Unnecessary Code in: Form Validation with PHP and Javascript Chapter 1 Lesson 3?


Recommended Posts

Posted

Adding PHP Validation: Chapter 1 lesson 3

minutes: 2:30 -nutshell:  If I understand Ben, he adds the php to the input tags in form.php so that when I enter my information in the form and hit submit, my information won't disappear.  But, when I take all of the php out that Ben seems to use to keep my information from disappearing, I get the same result: my information stays there.  Am I missing something?

I have deleted temporarily all of the php echoes in the input tags in form.php (e.g. I deleted <?php echo $error['name'] ?> ).  After I saved the page, I then refreshed the web page with the form.  I entered incorrect login information in the form, and clicked submit.  My incorrect login information was *still there.  As such, I don't yet see the point of adding the php echoes.

 

 

 

 

Posted
On 8/19/2020 at 1:16 AM, Drew2 said:

My incorrect login information was *still there.  As such, I don't yet see the point of adding the php echoes.

That is a question of intelligent browser caching ... it can't always count on it.

  • 5 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...