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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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 > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php