Posted by d on 09/28/80 11:43
"Drazen" <dsvec@foi.hr> wrote in message news:e08rbg$jpu$1@ss405.t-com.hr...
> Hello,
> I'm just starting programing in PHP and have a problem.
> When I executing this script php always returning me for input text.
> Why?
> Thx for any help.
use $_GET["submit"] or $_REQUEST["submit"] instead of $submit - access to
form variables simply by putting a $ in front of their names was disabled by
default in PHP not too long ago, which would explain why $submit is always
NULL in your example. That and the missing dollar sign on the second submit
:)
hope that helps!
dave
> <?
> if (isset($submit) &&submit=="yes") {
> echo "thank you very much.";
> } else {
> ?>
> <form action=proba3.php action=post>
> <input type=text name=email>
> <input type=text name=first_name>
> <input type=submit name=submit value=yes>
> </form>
> <?php
> }
> ?>
>
>
[Back to original message]
|