remove the "name" from the submit
so it's just: <input type=submit VALUE="Get Quote">

-----Original Message-----
From: Craig Westerman [mailto:[EMAIL PROTECTED]]
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 ><>
[EMAIL PROTECTED]


-----Original Message-----
From: Tom Rogers [mailto:[EMAIL PROTECTED]]
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

Reply via email to