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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.