Board index   FAQ   Search  
Register  Login
Board index PHP PHP Scripts

Validation

Links for php scripts

Moderators: macek, egami, gesf

Validation

Postby kiwi » Wed Jul 07, 2004 8:15 am

how to do validation for register a user system? if the data is wrong the go to same page and the cursor is on that field. how to do, show me please,,, thanks
kiwi
New php-forum User
New php-forum User
 
Posts: 124
Joined: Sun Feb 29, 2004 6:26 am

Postby Alex » Thu Jul 08, 2004 4:01 pm

sounds like you need javascript there, i would rather just highlight the areas that you need the user to fill out with a different color (red commonly)
so instead of the initial
Name:
you could have
Name:
also you can add asterisks so it would be easyer to notice
* Name: *

in case you didnt get what i said before, this is how your page will work:
output the initial form
user will fill it out and click submit and all the data will be sent to the next page
form "checker" script will run through and find a field not filled out and give out a warning message to the user along with a button to click and a hidden form with all the previous fields
a form will open again, but this time certain fields will be highlited, but the data will still be intact
hope this helps...
Alex
New php-forum User
New php-forum User
 
Posts: 180
Joined: Fri Mar 07, 2003 4:59 pm


Return to PHP Scripts

Who is online

Users browsing this forum: Google [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron