redirect to just "http://www.mysite.com/url.php" and not the full url including attributes? ie, ?this_group=2&that_id=3. is omitted from the actual form action.... some browsers even show the full URL including ?this_group=2&that_id=3 in the browser's address bar, but the actual content displayed is just what is generated by http://www.mysite.com/url.php
Hope that made sense. Anyway, any advice appreciated.
Mixing in GET variables inside a POST form method is usually not that good. Do you have the actual URL to url.php to test this? One can use Firefox tools like LiveHTTPHeaders to check what is really transferred to the server, and in your URL.php script, certain variables might not be in the $_GET or $_POST array. Usually you can better use $_REQUEST to access variables, because then it doesn't matter if the variables came fomr a GET or POST request.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
After further digging, it seems that you simply cannot pass the query string via a form action and had nothing to do with it being part of a static page (I thought maybe the static page was somehow stripping away the query string). However, this worked:
EDIT: Both method="post" and method="get" produce the correct result. Interesting to note that method="get" results in the full url with query string showing in the browser window while method="post" supresses the query string portion (though, the query string result is correct).
EDIT: Both method="post" and method="get" produce the correct result. Interesting to note that method="get" results in the full url with query string showing in the browser window while method="post" supresses the query string portion (though, the query string result is correct).
Yes, that exactly is the difference. GET-params are part of the url, like index.php?param1=abc¶m2=def. POST-params are written into a section below the http-request. http://developers.sun.com/mobility/midp/ttips/HTTPPost/ explains it quite well, i think.
onli wrote:Yes, that exactly is the difference. GET-params are part of the url, like index.php?param1=abc¶m2=def. POST-params are written into a section below the http-request. http://developers.sun.com/mobility/midp/ttips/HTTPPost/ explains it quite well, i think.