Re: newbie can't get form working

From: josh (jrblast_at_rogers.com)
Date: 07/05/04

  • Next message: HR: "MySQL help!"
    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: HR: "MySQL help!"

    Relevant Pages

    • Re: newbie cant get form working
      ... 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" ... > Raj wrote: ... >> Who is you fav author? ...
      (alt.php)
    • Re: newbie cant get form working
      ... 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" ... > Raj wrote: ... >> Who is you fav author? ...
      (comp.lang.php)
    • Re: AIX apache with PHP
      ... Raj has the following in his procedure which is the part most people miss: ... Put "AddType application/x-httpd-php .php" in httpd.conf. ... Apache doesn't recognize these files. ... > Do you Yahoo!? ...
      (AIX-L)
    • Re: newbie cant get form working
      ... In article, Raj wrote: ... php version he is using, and what global variables are. ... > echo $Author; ...
      (comp.lang.php)