RE: [PHP] form variables

From: Date: Tue, 05 Mar 2002 02:52:15 +0000
Subject: RE: [PHP] form variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-87212@lists.php.net to get a copy of this message
OK, changing from post to get gets me what I'm after. Thanks guys. Something odd though. If I type in RHAT and hit enter, I get this URL which is what I want. quotestest.php?quote=RHAT If I type in RHAT and click submit button, I get this URL which I don't like. quotestest.php?quote=RHAT&submitquote=Get+Quote How do I get rid of the extra &submitquote=Get+Quote in the URL? Why is enter and submit acting differently? Thanks Craig ><> westerman@chanuteks.com -----Original Message----- From: Tom Rogers [mailto:trogers@kwikin.com] Sent: Monday, March 04, 2002 8:07 PM To: Craig Westerman; php-general-list Subject: Re: [PHP] form variables hi Use <form action="quotestest.php" method="get"> This will work as long as the form is not too big Tom -------------------------------------------------------- <form action="quotestest.php" method="post"> <input type=text name="quote" maxlength=10 size=10> <input type=submit name="submitquote" VALUE="Get Quote"> </form>

« previous php.general (#87212) next »