On 1/16/08, Tuc at T-B-O-H.NET <[EMAIL PROTECTED]> wrote: > > Which I get my data in the QUERY_STRING, and the other data via > the [POST] params. > > Is there a way I can uniformly get what I need, regardless of a > GET or a POST? >
It sounds like you're trying to mix GET and POST. I believe this is what you're looking for, from the CGI documentation: MIXING POST AND URL PARAMETERS $color = url_param('color'); It is possible for a script to receive CGI parameters in the URL as well as in the fill- out form by creating a form that POSTs to a URL containing a query string (a "?" mark fol‐ lowed by arguments). The param() method will always return the contents of the POSTed fill-out form, ignoring the URL's query string. To retrieve URL parameters, call the url_param() method. Use it in the same way as param(). The main difference is that it allows you to read the parameters, but not set them. Under no circumstances will the contents of the URL query string interfere with similarly- named CGI parameters in POSTed forms. If you try to mix a URL query string with a form submitted with the GET method, the results will not be what you expect. The last sentence is important as well, because you're providing the browser with a URL that has a query string, and asking it to submit a form with the GET method. This will cause the browser to replace the existing query string with a new query string. Have you considered using hidden input fields to pass your 'next' and 'sid' parameters? That way they will be passed with the rest of the data. David