help me in form

Reply

Join Date: May 2008
Posts: 28
Reputation: almualim is an unknown quantity at this point 
Solved Threads: 0
almualim almualim is offline Offline
Light Poster

help me in form

 
0
  #1
Nov 18th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 14
Reputation: jack239 is an unknown quantity at this point 
Solved Threads: 1
jack239's Avatar
jack239 jack239 is offline Offline
Newbie Poster

Re: help me in form

 
2
  #2
Nov 18th, 2008
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:
  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.
Stuck in the middle of Java/PHP/Ajax development?

For free help on any technology and free articles visit http://www.techcubetalk.com
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 28
Reputation: almualim is an unknown quantity at this point 
Solved Threads: 0
almualim almualim is offline Offline
Light Poster

Re: help me in form

 
0
  #3
Nov 18th, 2008
thank you very much ...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC