not so simple post to a web site

Kee Nethery kee at kagi.com
Fri May 24 20:16:01 EDT 2002


I have a simple web page, source shown below (the names have been 
changed to protect the innocent). The web page this HTML creates is a 
form with one field and one button. Enter text into the field and 
press the button and in submits the text to a CGI which returns HTML.

I'd like to use Revolution to hit the same web CGI and get data back 
but I cannot figure out what parts and pieces go into the parts of 
the "post" command in Revolution.

Can someone show me how I would convert this web page into the "post" 
command (if that is the correct command) if the text that was entered 
into the field on the web page was "this is the text in the field"?

--------------
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
lang="en-US"><head><title>Kagi Query</title>
</head><body><form method="post" 
action="https://www.kagi.com/cgi-bin/TheQueryCGI.cgi?user=bartsimpson&pass=maggiesimpson" 
enctype="application/x-www-form-urlencoded">
<input type="hidden" name="user" value="bartsimpson" /><input 
type="hidden" name="pass" value="maggiesimpson" /><textarea 
name="queryText" rows="10" cols="80"></textarea><br /><br /><input 
type="submit" name=".submit" /></form></body></html>
--------------

It's a mystery to me. Thanks in advance.

Kee Nethery



More information about the use-livecode mailing list