can a forms action url contain querystring values?
I bet this will be a looong answer. Matti has been typing for 16 minutes now ;)
Fredrik Mörk
2010-09-03 22:11:16
Yeah, couldn't find anything in the HTML Spec regarding appending QS params along with `POST`ed form data. Awaiting Matti's findings...
Alexander
2010-09-03 22:17:10
@Alexander: don't stay up; it's way past midnight in Finland by now. I'll check back in tomorrow.
Fredrik Mörk
2010-09-03 22:31:00
@Fredrik I'm still waiting here in South Fla, USA. Got 5-1/2 hrs to midnight ;)
Alexander
2010-09-03 22:32:42
A:
I've just checked using a reduced test case:
- Form.htm that contains a form with an
action
ofdefault.aspx?query=1
and a submit button. - default.aspx that contains code in
Page_Load
to write outRequest.QueryString["query"]
The result I got when clicking on the button was a page that read:
1
So, the answer is yes.
Rob
2010-09-03 21:57:28
A:
Change to Method="GET"
to pass the insensitive data to the server...
Review this to get a handle on the topic...
http://www.w3.org/TR/html401/interact/forms.html#form-data-processing
http://www.w3.org/TR/html401/interact/forms.html#submit-format
Alexander
2010-09-03 21:58:58