httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lynne K." <ly...@tht.net>
Subject Re: [users@httpd] Apache 2.0.40 & PHP 4.3
Date Sun, 15 Sep 2002 02:03:06 GMT
Hello,

  Try the following:

   <FORM action='test.php' method='post'>
    Enter name: <input type='text' name='name'>
    <input type='submit' value='Say hello'>
   </FORM>

   <?php
             if (!$name)
            {
                print "Please enter name.";
             }
            else
            {
                print "Hello ".$name;
             }
       ?>

----- Original Message -----
From: "CSU Internet Inc." <csuinternet@yahoo.com>
To: <users@httpd.apache.org>
Sent: Saturday, September 14, 2002 9:41 PM
Subject: [users@httpd] Apache 2.0.40 & PHP 4.3


> I compiled PHP 4.3 with Apache 2.0.40 and it parses
> PHP files OK.........the problem I'm having is that
> it's not processing forms. Can someone tell me what's
> wrong with this script?
>
> <HTML>
>  <HEAD>
>    <TITLE>test</TITLE>
>  </HEAD>
>
>  <BODY>
>   <FORM action='test.php' method='post'>
>    Enter name: <input type='text' name='name'>
>    <input type='submit' value='Say hello'>
>   </FORM>
>
>   <? if (!$name) {
>     echo "Please enter name.";
>     }
>     else {
>     echo "Hello $name";
>     }
>   ?>
>
> </BODY></HTML>
>
> I get the form but it doesn't print the name from the
> input. It prints the "Please enter name."
> though......any clues on this?
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! News - Today's headlines
> http://news.yahoo.com
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message