Re: Problem posting variables
| From: | Olivier Bourgeois | Date: | Wed, 15 Nov 2000 11:20:12 +0000 |
| Subject: | Re: Problem posting variables | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-4444@lists.php.net to get a copy of this message | ||
> I am trying to create a form to enter orders for eBay auctions into a mySQL database. The
> first step, here:
>
> http://www.wholesalemegastore.com/ebay/step1.php3
>
> looks up the auction in a table, and displays our part number as well as the description in
> step two using
>
> printf("%s\n", $myrow["variable_name"]);
>
> I wish to post these to step3.php3 using
>
> <input type=hidden name="variable_name" value="<? echo $variable_name
> ?>">
>
> in step two, and to display these variables in step three using
>
> echo "$variable_name\n";
>
> but the values don't seem to show up. Everything else shows up but these two variables.
> Any suggestions? If you want to try it you can use auction 491469283. I haven't coded for
> Continue button so you would need to press "Finished" in step two.
>
Hello,
I've watched the thing : first there's a parse error in your script on line 266, but
is not the cause of the problem. You should double check the end form tag </form> because it
stands just 12 lines under the begining, also you hidden input aren't
in the form. So it's the reason why the data aren't posted. Or the other possibility is
that you have two forms in your document, but the second form isn't closed due to the parse
error. BTW I find it more clear to have just one form for all the data.
bye