www.webdeveloper.com
Results 1 to 7 of 7

Thread: Help needed please

Hybrid View

  1. #1
    Join Date
    Feb 2003
    Location
    South UK
    Posts
    19

    Help needed please

    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.

  2. #2
    Join Date
    Nov 2002
    Location
    NY, USA
    Posts
    731
    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.
    for(split(//,'))*))91:+9.*4:1A1+9,1))2*:..)))2*:31.-1)4131)1))2*:3)"'))
    {for(ord){$i+=$_&7;grep(vec($s,$i++,1)=1,1..($_>>3)-4);}}print"$s\n";

  3. #3
    Join Date
    Dec 2002
    Location
    Pleasanton, CA
    Posts
    2,132
    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.

  4. #4
    Join Date
    Nov 2002
    Location
    NY, USA
    Posts
    731
    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...
    for(split(//,'))*))91:+9.*4:1A1+9,1))2*:..)))2*:31.-1)4131)1))2*:3)"'))
    {for(ord){$i+=$_&7;grep(vec($s,$i++,1)=1,1..($_>>3)-4);}}print"$s\n";

  5. #5
    Join Date
    Dec 2002
    Location
    Pleasanton, CA
    Posts
    2,132
    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.
    Last edited by Nedals; 02-27-2003 at 12:31 AM.

  6. #6
    celebguy_dv Guest

  7. #7
    celebguy_dv Guest

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles