Hi all,
Still having problems with passing data from one page to another. I have placed "error_reporting(E_ALL);" at the begining of the page3.php to try and see the error. Found "error_reporting(E_ALL);" on Nogdog's site, thank you Nogdog.
it reports the following:
Notice: Undefined index: booking_id in /homepages/41/d43000764/htdocs/int-int-net2006/page3.php on line 46. I have look at the code and cannot see where this error is. This may notbe waht is causing my problem.
This is what I have so far.
Page1.php passes the data to page2.php with no problem.
Page2.php should pass the data to page3.php but it does not appear.
Where or what am I doing wrong.
Page1.php (picks up "id" from a SQl query)
<input name="course_id" id="course_id" type="text" class="coursetext" value="<?php echo $row_course['id']; ?>" size="20" />
<input type="hidden" name="course_id" value="<?php echo $row_course['id']; ?>" />
Page2.php (user checks if thier input is correct , if yes they click a submit button and continues to page3.pgp. If not correct user clicks on back button and is directed back to page1.php.
<td colspan="3" class="bookingformrowbg"><?php echo $_POST['id']; ?></td>
<input type="hidden" name="id" value="<?php echo $row_course['id']; ?>" />
Page3.php inputs the data into the database, this works fine.
<td colspan="2" class="bookingformrowbg"><?php echo $_POST['id']; ?></td>
Many thansk for your help.