Jump to content

Form verification


itch

Recommended Posts

In ASP you could write easy ways to check if, for example, an email address is valid. Then it would immediately write next to the input box that the information entered is incorrect and must be corrected.

 

How do you do that in PSP? Basically, I want to be able to click on a button and then have a new button appear ON THE SAME PAGE WITHOUT RELOADING.

 

Any help?!

Link to comment
https://forums.phpfreaks.com/topic/37735-form-verification/
Share on other sites

You have to do some ajax if you want php to validate the form inputs....

 

Same as asp - take each field and apply your validation terms to them - if they match the criteria then ok if not return a fail and use the return string to dictate what js will do to the page.

 

Can't be any more specific as there are lots of ways to go about form validation you have to pick that for yourself.

Link to comment
https://forums.phpfreaks.com/topic/37735-form-verification/#findComment-180538
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.