I'm trying to retrieve a value from a form with a single input: "formCameraIPAddress".
When the form is submitted using GET, I get a nice "?formCameraIPAddress=whateverIEnterHere" in the url. And $QUERY_STRING comes out as whateverIEnterHere after I run it through sed (the cgi program is a shell script). However, when the form is submitted asynchronously using an ajax method that loads pages in a content area like this...
Code:
<input type="button" onClick="ajaxpage(myCGIGeneratedCameraDocument, 'contentarea')" value="Display camera" />
... instead of getting something sensible out, it parses $QUERY_STRING as a number like 1207527656700, that always starts with the same first few digits, but then has completely random digits every time I invoke the script. It's driving me nuts that this form works synchronously, but not asynchronously, and that the query string gives a random number each time, so I'm stuck for debugging ideas!