This seems to work well in my experience:
on startup
put postData() into tPostData
split tPostData by "&" & "="
-- postData is now an array of the form data
end startup
function postData
put empty into tData
put 0 into c
repeat while tData is empty and c < 20
read from stdin until empty
put it after tData
add 1 to c
wait 20 millisecs
end repeat
return tData
end postData
note that it reads from stdin repeatedly until it's got something -
for some reason, the data doesn't always appear straight away.
Best,
Mark
On 10 Jan 2009, at 14:42, Bill Marriott wrote:
Hi folks,
Was working on a project this weekend and wondered if anyone had a
bare-bones script for processing POST submissions with a CGI
script? (Would
prefer not to get complicated with using a library).
For example, handling a form that submits via the POST method to
myrevscript.cgi
- Bill
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution