Re: Forms variables not going through different pages :(
| From: | Manuel Lemos | Date: | Mon, 27 Nov 2000 06:21:09 +0000 |
| Subject: | Re: Forms variables not going through different pages :( | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27308@lists.php.net to get a copy of this message | ||
Hello Sandeep,
On 26-Nov-00 15:58:33, you wrote:
>I know this has probably been posted loads of times, but I've been
>through mailing list archives like 5 times and I still haven't found
>a satisfactory answer.
>I have a form which I send to another page to preview it, and then
>ask the user to click the submit button so it goes into the database.
>Now as you might expect, just using $variables though the pages means
>I only get the first word in mysql.
>Should I be using global $HTTP_POST_VARS; somewhere? If so, where,
>as it keeps giving me : "GLOBAL variable declaration meaningless in
>main() scope "
>:(
>Someone point me in the right direction please??
I think you just need to enable the track_vars PHP configuration option.
Anyway, maybe you would like to take a look at this PHP class that handles
forms split in multiple pages with support for "<< Back", "Continue
>>",
"Finish >>" and "Cancel" buttons".
http://phpclasses.UpperDesign.com/browse.html/package/108
Regards,
Manuel Lemos
Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?user=mlemos@acm.org
--
E-mail: mlemos@acm.org
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--