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:[EMAIL PROTECTED]]
Sent: 19 September 2002 15:40
To: [EMAIL PROTECTED]
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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to