Can someone please help me.
I have a Perl Studio program that creates simple form email cgi scripts for me.
Now it works fine but it only sends information that is in a form field.
What I need is a way to send the final completed order form to me by email by using a cgi script.
The main problem is that only the form fields are sent, the actual order form items are in a table, and the cgi script doesn't recognise them as fields to process.
Is there a cgi script somewhere that will send ALL the information that is between the <form> and </form> tags, espescially info that is in a table.
A form will only send name/value pairs of the form controls it encloses. Other markup, such as tables, are never sent with the form data. What you'll have to do is place all the extra information you want sent with the form into hidden fields.
Another way to handle your problem requires a little programming.
If I'm not mistaken, the only information you get back is a name=qty for each item in your table. What you can do is to associate the name (add1, add2, etc) with the some appropiate data contained in your CGI script.
ie:
if ($name eq 'add1' ) { $descr = 'whatever'; $price='$xx', etc }
michael's table is contained within FORM tags and contains a number of <input .... > elements. onSubmit the name/value pairs of these elements can be returned to the CGI script. That CGI script can then be used to email the results...
Hence my comment about a little programming. I was just proposing a method with a minium of change to the HTML page. (no hidden fields required).
Bookmarks