common Posted March 4, 2009 Share Posted March 4, 2009 hey ive got 3 php pages. the first 2 pages has each got a form in. The first form on page1 links to the second page. The form on page2 links to page three... Say i enter a name on page1's form, and uses the POST method to get the name on page2, how can i get that same name on page 3?? Link to comment https://forums.phpfreaks.com/topic/147924-forms/ Share on other sites More sharing options...
WolfRage Posted March 4, 2009 Share Posted March 4, 2009 $_POST it again using a hidden input field. Link to comment https://forums.phpfreaks.com/topic/147924-forms/#findComment-776347 Share on other sites More sharing options...
common Posted March 4, 2009 Author Share Posted March 4, 2009 ok ok i am with you but what is the coding look like for a hidden input?? Link to comment https://forums.phpfreaks.com/topic/147924-forms/#findComment-776352 Share on other sites More sharing options...
rs_nayr Posted March 4, 2009 Share Posted March 4, 2009 hey ive got 3 php pages. the first 2 pages has each got a form in. The first form on page1 links to the second page. The form on page2 links to page three... Say i enter a name on page1's form, and uses the POST method to get the name on page2, how can i get that same name on page 3?? i think this would help put this on the 3rd page <?php //get the value of the field in page2 $name=$_POST['nameofthefieldinpage2']; echo"$name"; ?> Link to comment https://forums.phpfreaks.com/topic/147924-forms/#findComment-776360 Share on other sites More sharing options...
WolfRage Posted March 4, 2009 Share Posted March 4, 2009 <input name="test" type="hidden" value="<?php echo $_POST['test']; ?>" /> Link to comment https://forums.phpfreaks.com/topic/147924-forms/#findComment-776364 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.