Re: beginning PHP problem
- From: "d" <d@xxxxxxxxxxx>
- Date: Mon, 27 Mar 2006 15:23:00 GMT
"Drazen" <dsvec@xxxxxx> wrote in message news:e08rbg$jpu$1@xxxxxxxxxxxxxxxxx
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
}
?>
.
- Follow-Ups:
- Re: beginning PHP problem
- From: gerg
- Re: beginning PHP problem
- References:
- beginning PHP problem
- From: Drazen
- beginning PHP problem
- Prev by Date: Re: PHP formmail getting spammed by bots
- Next by Date: Array output from function into a new query
- Previous by thread: beginning PHP problem
- Next by thread: Re: beginning PHP problem
- Index(es):
Relevant Pages
|