Re: newbie can't get form working

From: Jeremy Shovan (jeremys013_at_foundationx.com)
Date: 05/12/04


Date: Tue, 11 May 2004 17:54:58 -0700

You probabally dont have register globals on:
Try this:
> text.php is:
>
<html>
<head>
<title>My First Super Global Variable</title>
</head>
<body>
<?php
echo $_GET['Author'];
?>
</body>
</html>

If your form meathod is post then it would be $_POST['Author']

Jeremy Shovan
Foundation X

Raj wrote:
> Please help.
>
> What am I doing wrong? I can't get the value entered into text.html to
> be seen in text.php.
>
> Thnaks in advance,
>
> Raj
>
> text.html is:
>
> <html>
> <head>
> <title>Untitled Document</title>
> </head>
> <body>
> <FORM METHOD=GET ACTION="text.php">
> Who is you fav author?
> <INPUT NAME="Author" TYPE="TEXT">
> <br>
> <br>
> <INPUT TYPE=SUBMIT>
> </FORM>
> </body>
> </html>
>
>
> text.php is:
>
> <html>
> <head>
> </head>
> <body>
> <?php
> echo $Author;
> ?>
> </body>
> </html>



Relevant Pages