Re: passing a variable
| From: | Greg Donald | Date: | Fri, 21 Jul 2000 20:25:10 +0000 |
| Subject: | Re: passing a variable | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-1412@lists.php.net to get a copy of this message | ||
On Fri, 21 Jul 2000, ROUSSY, ISABELLE wrote:
> Hi,
>
> I tried out to pass a variable through a form with a submit button to
> another file and it's not working
>
> echo "<form method=POST action=choix.php>
> ...
> echo "Last Name: <Input TYPE=Text Name=\lname\ > <BR>";
>
> <!-- choix.php -->
> echo $lname;
> $h = "hello";
>
> it displays hello but not the the varible form the form ! What do I do
> wrong?
>
>
>
echo "<form method=POST action=\"choix.php\">";
echo "Last Name: <input type=text name=\"lname\"> <BR>";
echo "<input type="submit" name="submit"></form>";
<!-- choix.php -->
if($submit){
echo $lname;
}
$h = "hello";
Just a few syntax errors...
HTH,
Greg
--
------------------------------------------------------------------------
destiney - (des-ti-ny) - n. 1. deity of all things "html", 2. common
internet addict, 3. lover of late 80's heavy metal music, 4. Activist
for the terminally un-elite; see also - cool guy, des, mr. php...
It's 4:00am, your web site is still up, why are you?
http://destiney.com/
------------------------------------------------------------------------