RE: [PHP] form variables
| From: | Martin Towell | Date: | Tue, 05 Mar 2002 02:56:43 +0000 |
| Subject: | RE: [PHP] form variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-87213@lists.php.net to get a copy of this message | ||
remove the "name" from the submit
so it's just: <input type=submit VALUE="Get Quote">
-----Original Message-----
From: Craig Westerman [mailto:westerman@chanuteks.com]
Sent: Tuesday, March 05, 2002 1:52 PM
To: php-general-list; Tom Rogers
Subject: RE: [PHP] form variables
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>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php