yoyo Posted February 2, 2008 Share Posted February 2, 2008 I have 3 pages. page 1 formPage 2 infoPage 3 email the contents of page 1I have this in the top of page 2 but the varibales aren't being passed onto the page 3 <?phpforeach ($_POST as $key=>$value) { $hidden .= '<input type="hidden" name="' . $key . '" value="' . $value . '">';}?>Any help would be appreciatedCheers Link to comment Share on other sites More sharing options...
Synook Posted February 2, 2008 Share Posted February 2, 2008 Use sessions. Put session_start() at the top of each page (before any content) you want the variable to be accessible (pages two and three), then on page two put foreach ($_POST as $key=>$value) { $_SESSION[$key] = $value;} Then on page three you can access the variables as $_SESSION[$key] Link to comment Share on other sites More sharing options...
justsomeguy Posted February 4, 2008 Share Posted February 4, 2008 I have this in the top of page 2 but the varibales aren't being passed onto the page 3Do you have form tags and a submit button or are you just clicking a link to go to the next page? You need to put the hidden input tags into a form that has a submit button that goes to the next page. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.