Re: Re[2]: [PHP] Netscape and post

From: Date: Sat, 05 May 2001 08:46:46 +0000
Subject: Re: Re[2]: [PHP] Netscape and post
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-51515@lists.php.net to get a copy of this message
On Saturday 05 May 2001 08:24, Richard Kurth wrote: > >> Method Not Allowed > >> The requested method POST is not allowed for the URL > >> /scripts/index.html. > >> > >><form method="post" action=""> > > Chris> Presumably because the action attribute needs to have a value. > >Since your HTML is broken, Netscape is creatively > >misinterpreting it, as it is wont to do. > I probably better explain > myself better this is a small sample of the form. The action is set at > the bottom of the form > <?php > > if (! (isset($action))) { > > ?> > <form method="post" action=""> That's exactly what he was saying. Change this to <form method="post" action="index.html"> > <input type="hidden" name="action" value="check"> <-- > Action is set Who cares about some field named "action"? The problem is the "action" *attribute" of the <form> tag - the thing responsible for telling the browser where to send the data. You left that empty, the browser tries to send the data to "" -> kawoom -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "World domination. Fast." (Linus Torvalds about Linux)

« previous php.general (#51515) next »