Re: Getting data from a page which isn't a form
| From: | Janet Valade | Date: | Mon, 29 Apr 2002 02:34:31 +0000 |
| Subject: | Re: Getting data from a page which isn't a form | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-18863@lists.php.net to get a copy of this message | ||
If you have a form on your confirm page, with no text fields, just the
submit button, you can use hidden fields in the form to pass the variables
on.
<input type="hidden" name="var1" value="$var1">
--Janet
----- Original Message -----
From: "Kim Kohen" <kim@webguide.com.au>
To: <php-db@lists.php.net>
Sent: Sunday, April 28, 2002 6:27 PM
Subject: [PHP-DB] Getting data from a page which isn't a form
> Hi all,
>
> I'm using PHP to retrieve data from a form and pass it to a 'confirm'
page.
>
> Here the data is echoed and the user presses a 'confirm' button to finally
> mail the information to us. This page is a basic html page (confirm.html)
> with some inline php which displays the relevant information. At the
bottom
> there is a form 'confirm' button which has the action set to 'confirm.php'
>
> Confirm.php simply emails the data.
>
> The problem is that the variables are not getting passed to the
confirm.php
> page - presumedly because they are not part of a valid form (confirm.html
> contains no form fields, just the 'confirm' button)
>
> I know the variables are all valid as I can echo them fine on the
> confirm.html page - I just don't know how to pass them onto the new page
> when they're not part of a form.
>
> Any assistance would be greatly appreciated.
>
> Cheers and thanks
>
> kim
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>