RE: [PHP-WIN] form-problems
| From: | Rich Gray | Date: | Thu, 19 Sep 2002 15:09:55 +0000 |
| Subject: | RE: [PHP-WIN] form-problems | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-15906@lists.php.net to get a copy of this message | ||
Assuming v4.2.x of PHP
Is register_globals set to On or Off? If set to Off (default) then you need
to use $_POST['lastname'] instead of $lastname, and $_SERVER['PHP_SELF']
instead of $PHP_SELF
Cheers
Rich
-----Original Message-----
From: Luis Moreira [mailto:lamoreira@bes.pt]
Sent: 19 September 2002 15:40
To: php-windows@lists.php.net
Subject: Re: [PHP-WIN] form-problems
Looks confusing or at least incomplete.
If you have <FORM> to start where is </FORM> to end it ?
Send the complete text(s) and I will take a peek
Luis
----- Original Message -----
From: "bw" <b_wetzel@gmx.de>
To: <php-windows@lists.php.net>
Sent: Thursday, September 19, 2002 3:10 PM
Subject: [PHP-WIN] form-problems
Hi,
new to PHP and already problems with simple stuff.
Created a simple html/php-form with a couple of inputfields like:
<form action="<? echo $PHP_SELF;?>" method="post">
<input type="text" name="lastname" value="<?php echo $lastname;?>
and
I expected to get back the variables in the simple answerpart:
<?php
echo "your lastname is <br>$lastname<br>";
......
?>
but get back nothing but the raw answer text.
Code should be o.k. Perhaps some missing ini -entries? or browser-problem
(MSIE5.00) ?
Working with Apache 1.3.26 on W2k.
Anyone a clue?
thx in advance ,
B.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php