Form send question -
I can make the forms but just don't understand how to make them send. I have been reading every book I can get my hands on but how to send the form is just something I cannot get. Can someone explain this to me in English. An currently reading CGI book on style and it has allot on form but still cannot get the send thing.
Thanks in advance for any help
jwhitener posted this at 20:26 — 11th May 1999.
They have: 27 posts
Joined: Mar 1999
It sounds like you need a submit line in your page somewhere. The following is from 'html for the world wide web' by Liz Castro.
'There are two ways to send info to the server, get or post. GET appends the name-value pairs to the end of the url. This info is then passed to the QUERY_STRING variable. The cgi script must then break down the QUERY_STRING enviroment variable to analyze the incoming data. The GET method does have size limits, its advantage, however, is that it can point to a cgi script. The POST method sends a data file with the name-value pairs to the servers standard input, together with the content-type and the Content Lenght in bytes. The cgi script then takes data from the standard input and analyzes it. The POST advantage is that their is no size limit.'
here is an example form script.
form method=POST action="locationofcgi"
your form
input type="submit" value="nameonbutton"
You might be having problems for two reasons. your form method doesn't match what your cgi script is expecting (either POST or GET), or you don't have a submit button set up at the end.
hope this helps
Jason
Anonymous posted this at 20:36 — 11th May 1999.
They have: 5,633 posts
Joined: Jan 1970
this will look like this in HTML:
<form action="/cgi-bin/guestbook.cgi" name="form" method="post">
<input type.......blah blah
<input type="submit" value="Transmit Form"">
</form>
is your problem fixed???
jksworks posted this at 23:16 — 11th May 1999.
They have: 12 posts
Joined: Apr 1999
ok, but where do I put my email address so it will send to me? In the value and action spot...right?
Thanks
John Pollock posted this at 00:26 — 12th May 1999.
He has: 628 posts
Joined: Mar 1999
If you're using a CGI script, the instructions for it should tell you how to define an email address for sending. I use FormMail from Matt's Script Archive at:
http://www.worldwidemart.com/scripts/
You can also use an alternative way of sending the form if you want it to go to your email address. The catch is it only works with later browsers (3+ I believe).
It uses a mailto: as the action for the form:
<FORM method="POST" action="mailto:[email protected]">
The trick is explained in more detail at:
http://www.htmlgoodies.com/tutors/forms.html
------------------
John Pollock
www.pageresource.com
www.javascriptcity.com
Java Script: A Beginner's Guide
Page Resource
jksworks posted this at 02:01 — 12th May 1999.
They have: 12 posts
Joined: Apr 1999
Thanks to all of you for them help.
It uses a mailto: as the action for the form:
<FORM method="POST" action="mailto:[email protected]">
This is exactly what I was wanting.
Kimberly
Flicki posted this at 01:14 — 13th May 1999.
They have: 8 posts
Joined: Mar 1999
If I'm understanding you correctly, you were able to use two form actions within one html document? If so, how did you do that? I've been looking for a javascript that would allow me to run two form actions (cgi's) to no avail.
Thanks,
Flicki
Anonymous posted this at 02:38 — 13th May 1999.
They have: 5,633 posts
Joined: Jan 1970
flicki,
actually there's no problem with two forms on a HTML-page, just do it!!!
if your code looks like this:
<form action="blah blah" method="post">
...
</form>
<form action="another blah" method="post">
...
</form>
you won't have any problems, at least it worked perfect on my intranet.
cu
patrick
JP Stones posted this at 02:51 — 13th May 1999.
They have: 2,390 posts
Joined: Nov 1998
As Patrick said, using two forms on one HTML document works fine, I have done it before.
JP
------------------
The Webmaster Promotion and Resource Site
www.what-next.com
The NEXT step in Designing and Promoting your Website
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.