[REBOL] Re: POST examples ...
From: gjones05:mail:orion at: 1-Jun-2001 19:14
Hi, Petr,
I didn't have time earlier to find a good sample form.
Here is the source for a test form taken from a cgi explanation site:
(url to original page-form is half way down)
http://www.cc.ukans.edu/~acs/docs/other/cgi-with-perl.shtml
#####source for example form#####
<html>
<form method="post"
action="http://www.cc.ukans.edu/cgiwrap/grobe/send-veggi-info.pl">
<P>
If you would like more information about vegetarianism,
please enter your name and e-mail address below.<P>
Please enter your name:<br>
<input type="text" name="name" size="35"><br>
Please enter your e-mail address:<br>
<input type="text" name="address" size="35"><p>
<input type="submit" value="send address">
<input type="reset" value="start over">
</form>
</html>
######
When I tried the way posted in the manula, it did not work. Sorry. I
thought I had used that way before. However, maybe that is why I
started using a different method. It took a bit to find this info, but
I have translated a rebol post using my method:
name: "My Name"
address: [myname--mydom--dom]
page: read/custom
http://www.cc.ukans.edu/cgiwrap/grobe/send-veggi-info.pl reduce [
'post rejoin [{name=} to-url name {&address=} to-url address]
]
Maybe this example and real post form will let you experiment a bit
before you return to work.
--Scott Jones