|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
PHP5 - From Validation Question
I have a form that uses the post array and directs back to itself after the user enters their information and hits the submit button. The form then directs back to itself to go through the php script and form validation code. If one of the text fields fails the form validation script the user has to enter ALL the information over again. How do I allow the user to only enter in the failed text fields while the other fields remain populated?
|
|
#2
|
|||
|
|||
|
PHP Code:
__________________
We Live; We Love. We Hate; We Die. |
|
#3
|
||||
|
||||
|
You can insert the value that way, provided that it is a text field, but you should clearly mark (highlight with CSS is one way) which fields caused an error. You could also set correct fields as "disabled" but that really isn't necessary, and isn't very user friendly in that they might want to change a phone number or some other data, even though your validation determined that it was correct.
__________________
"Strange women lying in ponds distributing swords is no basis for a system of government. Supreme executive power derives from a mandate from the masses, not from some farcical aquatic ceremony! Well, but you can't expect to wield supreme executive power just 'cause some watery tart threw a sword at you! I mean, if I went 'round saying I was an emperor just because some moistened bint had lobbed a scimitar at me, they'd put me away!" |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > PHP5 - From Validation Question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|