It's not a PHP issue, I'll tell you that. There is something that's not
set up correctly in your apache configuration. Someone here should be
able to give you the syntax, but you may find an answer on an Apache
list or FAQ faster...

---John Holmes...

> -----Original Message-----
> From: Remon Redika [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 24, 2002 11:07 PM
> To: Anna Gyor
> Cc: [EMAIL PROTECTED]
> Subject: [PHP] Re: html input and php (newbie), ask more
> 
> i have tried to change post file from input.php3 to input.php
> and it's done.
> i wanna ask more .., why if i used post var to input.php3 the script
> doesn't
> work. and i got message
> 
> 
> Method Not Allowed
> The requested method POST is not allowed for the URL /input.php3.
> 
>
------------------------------------------------------------------------
-
> ---
> Apache/1.3.26 Server at www.reymond.com Port 1000
> 
> 
> <?php
> > if ($submit == "click"){
> >   echo "Hello, $UserName";
> > }
> > else{
> > ?>
> >   <html><body>
> >
> >   <form method="post" action="input.php"> <------input.php3
> >
> >   Enter Your Name
> >   <input type="text" name="UserName"></input><br>
> >
> >   <input type="submit" name="submit" value="click"></input>
> >   <? echo "Hello, $UserName";  ?>
> >   </form>
> >
> >   </body></html>
> > <?
> > }
> >
> > ?>
> 
> 
> Anna Gyor writes:
> 
> > Hi,
> >
> > I just began to learn php and I have te following code. How can I
get
> the
> > input field value in the php script? Because my script doesn't work.
> > $UserName is always an empty string.
> >
> > <?php
> > if ($submit == "click"){
> >   echo "Hello, $UserName";
> > }
> > else{
> > ?>
> >   <html><body>
> >
> >   <form method="post" action="input.php3">
> >
> >   Enter Your Name
> >   <input type="text" name="UserName"></input><br>
> >
> >   <input type="submit" name="submit" value="click"></input>
> >   <? echo "Hello, $UserName";  ?>
> >   </form>
> >
> >   </body></html>
> > <?
> > }
> >
> > ?>
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to