Click to See Complete Forum and Search --> : Help needed please


michael
02-26-2003, 04:29 PM
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.

I have an order form on this site www.katseyeblends.co.uk

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.

Thanks.

jeffmott
02-26-2003, 08:10 PM
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.

Nedals
02-26-2003, 10:33 PM
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 }

and then compile your email.

Just a thought. :)

jeffmott
02-26-2003, 10:55 PM
nedals
If I'm not mistaken, the only information you get back is a name=qty for each item in your table
The contents of a table does not submit with a form at all...

Nedals
02-27-2003, 12:28 AM
jeffmott,

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).

But I know you already know that. :)

celebguy_dv
03-03-2003, 11:53 PM
http://banners.dollarmachine.com/pic/2014000/hal001.gif (http://www.kinkyceleb.com/1261795520)

celebguy_dv
03-04-2003, 12:46 AM
http://banners.dollarmachine.com/pic/2014000/hal001.gif (http://www.kinkyceleb.com/1261795520)