943,723 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 393
  • PHP RSS
Nov 18th, 2008
0

help me in form

Expand Post »
hello friends, i have two page in php, the first page contains entry form, and second page contains insert query, i want to keep form variables In the case of an error.
Last edited by almualim; Nov 18th, 2008 at 4:20 am.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
almualim is offline Offline
28 posts
since May 2008
Nov 18th, 2008
2

Re: help me in form

After the form is posted all the form variables are available in the second page in the global array $_REQUEST[]. So when you want to keep the form variables in the first page then do this:
PHP Syntax (Toggle Plain Text)
  1. <input type="text" name="testfield" value="<?=$_REQUEST[testfield]?>" />

or you can keep the posted form variables in session and in the first page you can put the values in value attribute as shown above.
Reputation Points: 13
Solved Threads: 1
Newbie Poster
jack239 is offline Offline
14 posts
since Aug 2008
Nov 18th, 2008
0

Re: help me in form

thank you very much ...
Reputation Points: 10
Solved Threads: 0
Light Poster
almualim is offline Offline
28 posts
since May 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Form problems (array and mandatory field)
Next Thread in PHP Forum Timeline: Time out error





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC