Re: help!
| From: | Nino V | Date: | Tue, 22 Oct 2002 05:56:32 +0000 |
| Subject: | Re: help! | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-16464@lists.php.net to get a copy of this message | ||
Hi,
using PHP 4.2.3, you should use
echo $_GET("Author"); (if you use the method "get")
or
echo $_POST("Author"); (if you use the method "post")
Otherwise (and the code will be back compatible), put this lines at the very
beginning of your php-code:
if(!isset($_POST)) $_POST=$HTTP_POST_VARS;
if(!isset($_GET)) $_GET=$HTTP_GET_FILES;
Bye,
Nino
=================================
http://www.vessella.it (italiano, esperanto, kiswahili,
english)
http://www.changamano.org (Iniziative di solidarietà per la
Tanzania)
Corso di lingua swahili: http://corsoswahili.vessella.net
Corso di lingua esperanto: http://esperanto.vessella.net
Jifunze lugha ya Kiesperanto: http://kiesperanto.vessella.net
Kamusi/Vortaro: http://kamusi.vessella.net
Vocabolario esperanto-italiano: http://vortaro.vessella.net
----- Original Message -----
From: "jeffrey payao" <jeffrey.payao@imagineasia.com>
To: <php-windows@lists.php.net>
Sent: Tuesday, October 22, 2002 5:52 AM
Subject: [PHP-WIN] help!
> hi! im new to programming ang would like to give PHP a try. now i have
> this php script and its not working well. but some of my little scripts
> (php) are ok. the small script is included. it did run without any parse
> errors but i cant seem to have the results. when i entered a name in the
> box and press query, it should return the name right? but within my case
> i cant seem to return the name. im using apache 1.3.27 and PHP 4.2.3 -32
> on WIN2K. please help...
>
> thanks in advance...
>
> (the text.html)
>
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>
> <HTML>
> <HEAD></HEAD>
> <BODY>
> <FORM METHOD=GET ACTION="text.php">
> Who is your favourite author?
> <INPUT NAME="Author" TYPE="TEXT">
> <BR>
> <BR>
> <INPUT TYPE=SUBMIT>
> </FORM>
> </BODY>
> </HTML>
>
>
>
> (the text.php)
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>
> <HTML>
> <HEAD></HEAD>
> <BODY>
> Your favourite author is:
> <?php
> echo $Author;
> ?>
> </BODY>
> </HTML>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>