Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
validation checking from PHP code
Old 05-13-2008, 05:38 PM validation checking from PHP code
Junior Talker

Posts: 2
Trades: 0
I have a webpage which requires filling out details by anonymous user, and in the bottom I have put in the captcha control.
During clicking of the submit button, I do the validation and throw out the error. However , the user has to enter all the form data again if the validation fails because all fields get reset.
Is there a way to prevent form fields from being reset when validation fails while running PHP script?
harihari is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-13-2008, 05:42 PM Re: validation checking from PHP code
VirtuosiMedia's Avatar
Web Design Made Simple

Posts: 1,228
Trades: 0
They're called sticky forms. For a simple text element, you simply echo the checked variable in as the element's value.
VirtuosiMedia is offline
Reply With Quote
View Public Profile Visit VirtuosiMedia's homepage!
 
Old 05-13-2008, 11:26 PM Re: validation checking from PHP code
Inet411's Avatar
Skilled Talker

Posts: 88
Name: programmer
Location: internet
Trades: 0
ie.
html:
HTML Code:
 <input type="text" name="email" value = "<?=$_POST['email']?>">
__________________

Please login or register to view this content. Registration is FREE

Inet411 is offline
Reply With Quote
View Public Profile Visit Inet411's homepage!
 
Reply     « Reply to validation checking from PHP code
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13742 seconds with 12 queries