Re: Can't recover data in php posted with a form tag.
| From: | Bastian Vogt | Date: | Fri, 29 Nov 2002 09:06:00 +0000 |
| Subject: | Re: Can't recover data in php posted with a form tag. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126458@lists.php.net to get a copy of this message | ||
hi,
you could try to fetch the value from the superglobal variable "$_POST" or
"$HTTP_POST_VARS"
(echo $_POST[clSQL];
echo $HTTP_POST_VARS[clSQL];)
regars,
bastian
Luc Roettgers schrieb:
> I have 2 files runQuery.php and doSQL.php, where the first one is posting data entered by the
> user to the second page and displaying it but the data never arrives. Any idea why this would not
> work, maybe some configuration issue?? Any help is really appreciated...
>
> <!--
>
> <!-- runQuery.php -->
> <DIV align="left">
> <FORM name="sql" method=post action="doSQL.php">
> <INPUT type="text" name="clSQL"
> size="50"><BR><BR>
> <INPUT type="submit" name="submit" value="Lancer
> requète">
> <INPUT type="reset" name="reset"
> value="Effacer"><BR>
> </FORM>
> <I class="normal">i.e. select * from scpsft</I>
> </DIV>
>
> <!-- doSQL.php -->
> <HTML>
> <BODY bgcolor="#efefde">
> <H1>Résultat de la requète:</H1>
> <?PHP
> echo ($clSQL);
> ?>
> </BODY>
> </HTML>
>