Interesting. I never knew this was the behavior for the action attribute.
I hardly use GET-only forums, so I never noticed. When you change the method from GET to POST, the form fields are added to the Forms collection, while the id is still present in the QueryString.
For a strict GET solution, you could add a hidden field with the same name as the QueryString variable you're trying to pass. Something like this will work:
Code:
<form method="get" action="page2.asp?id=1">
<input type="hidden" name="id" value="1">
<input type="text" name="v1">
<input type="text" name="v2">
<input type="submit" value="Submit Me">
</form>
When you now submit the form, all three form elements (id, v1 and v2) will be appended to the QueryString.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to:
Mind by
System Of A Down (Track 9 from the album:
System Of A Down)
What's This?