Re: newbie can't get form working
From: josh (jrblast_at_rogers.com)
Date: 07/05/04
- Next message: Pjotr Wedersteers: "Re: N00b question: creating files"
- Previous message: Tim Van Wassenhove: "Re: Simple model-view -separation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 04 Jul 2004 23:20:11 GMT
I think his problem was that the name of the form wat Author with a
capital "A" and in the php it was author with a lower case "a"
Jeremy Shovan <jeremys013@foundationx.com> wrote in
news:zBeoc.139458$Qy.27985@fed1read04:
> 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>
>
- Next message: Pjotr Wedersteers: "Re: N00b question: creating files"
- Previous message: Tim Van Wassenhove: "Re: Simple model-view -separation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|