Hi, I'm new to PHP and I'm having trouble getting my variables to work correctly on my 3rd page. First page is a form that where the user inputs information. Second page displays the info for verification via echo $_POST ['vairable name']. The third page is supposed to perform the 'insert into' my database. The problem is that the variables are all undefined when the get posted to page 3.
What am I missing here?
Tom
[SOLVED] Using $_POST['SponsorName'] for 3rd page
Moderator: General Moderators
-
tpendergast
- Forum Newbie
- Posts: 2
- Joined: Thu Jan 15, 2004 10:35 am
-
kettle_drum
- DevNet Resident
- Posts: 1150
- Joined: Sun Jul 20, 2003 9:25 pm
- Location: West Yorkshire, England
If its three pages then you must remember to make the second page send the info entered on the first page to the third. I.e. there needs to be a form on the second page that passes the variables entered from the first page via a hidden form or other method.
Code: Select all
<input type="hidden" name="var1" value="<?php echo $_POSTїvar1]; ?>">-
tpendergast
- Forum Newbie
- Posts: 2
- Joined: Thu Jan 15, 2004 10:35 am
Thanks
The input type hidden was the key...
Thanks!!!!!!!
Thanks!!!!!!!