View Single Post
  #9 (permalink)  
Old 09-08-09, 10:08 PM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
Quote:
Originally Posted by triplebig View Post
if i want to add additional field how do i add my field in the script below ?

i want to add participantTotal & lecturerName field

PHP Code:

    header('Location: ' SUCCESS_URL "?courseName=" $_POST["courseName"]); 

Supposing you added two new fields to your form:
HTML Code:
<input type="text" name="lecturerName">
<input type="text" name="participantTotal">
And in insert5.php you collect the values from $_GET["lecturerName"] and $_GET["participantTotal"],
then the new header command would look like this:
PHP Code:

header('Location: ' SUCCESS_URL "?courseName=" $_POST["courseName"] . "&lecturerName=" $_POST["lecturerName"] . "&participantTotal=" $_POST["participantTotal"]); 

__________________
Jerry Broughton
Reply With Quote