mwarren77 Posted January 17, 2009 Share Posted January 17, 2009 I have a form that spans 3 pages. I am completly stumped and know the answer is right there. Form 1 collects vehicle information. They can add another vehicle by clicking a textbox. Up to 5 vehicles. Form 2 is the same but for drivers. The 3rd page asks for more info and has to put the driver to the vehicle. I have it setup as 1 page which controls which external page to include per step using switch statement. I also have a simple foreach($_POST as $key => $val){ $_SESSION[$key] = $val; } and build a session variable like => if(isset($_POST['']) $_SESSION['driver']['4'] = $_POST[''].'||'.$_POST['']; For some reason I am not able to do a foreach $_SESSION or even a echo $_SESSION['driver']['4'] statement or Link to comment https://forums.phpfreaks.com/topic/141157-add-more-people-form-stumped/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.