Thanks guys for the help. This is my finally script please tell me what you think. It sends it another script that thn emails me using my mail porgram in tripod the tripodmail.pm Feel free to check out the script at HERE If you check it out and find a problem please tell me.
#!/usr/bin/perl require TripodMail; print "Content-type:text/html\n\n"; $FORM{'GraphicsDesign'} = ""; $FORM{'Screenprinting'} = ""; $FORM{'Digitizing'} = ""; $FORM{'Embroidery'} = ""; $FORM{'Manufacturing'} = ""; $alpha = ""; $printy_stuff = ""; read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); @pairs = split(/&/, $buffer); foreach $pair (@pairs) { ($name, $value) = split(/=/, $pair); $value =~ tr/+/ /; $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; $FORM{$name} = $value;} if ($FORM{'services'} eq "yes") { $printy_stuff = qq( Services:<br> $FORM{'GraphicsDesign'}<br> $FORM{'Screenprinting'}<br> $FORM{'Digitizing'}<br> $FORM{'Embroidery'}<br> $FORM{'Manufacturing'}<br>); } if ($FORM{'textarea'} ne "") { $alpha = "Coments: $FORM{'textarea'}"; } print <<EndHTML; <html><head><title>Order Form</title></head> <body> <h1>Please check your order.</h1> If all the info is correct please click yes, if not click the back but +ton on your browser. <p></p>$FORM{'firstname'} $FORM{'lastname'}<br> Email: $FORM{'email'}<br> Phone Number: $FORM{'number'}<br> <br>Catalog: $FORM{'catalog'}<br> Brand: $FORM{'brand'}<br> Item number: $FORM{'inumber'}<br> Color: $FORM{'color'}<br> Sizes: $FORM{'size'}<br><br> $printy_stuff<BR> $alpha <form method="post" action="post.cgi"> <input type="hidden" name="firstname" value="$FORM{'firstname'}"> <input type="hidden" name="inumber" value="$FORM{'inumber'}"> <input type="hidden" name="number" value="$FORM{'number'}"> <input type="hidden" name="catalog" value="$FORM{'catalog'}"> <input type="hidden" name="Embroidery" value="$FORM{'Embroidery'}"> <input type="hidden" name="brand" value="$FORM{'brand'}"> <input type="hidden" name="lastname" value="$FORM{'lastname'}"> <input type="hidden" name="Screenprinting" value="$FORM{'Screenprintin +g'}"> <input type="hidden" name="size" value="$FORM{'size'}"> <input type="hidden" name="email" value="$FORM{'email'}"> <input type="hidden" name="color" value="$FORM{'color'}"> <input type="hidden" name="Digitizing" value="$FORM{'Digitizing'}"> <input type="hidden" name="GraphicsDesign" value="$FORM{'GraphicsDesig +n'}"> <input type="hidden" name="services" value="$FORM{'services'}"> <input type="hidden" name="Manufacturing" value="$FORM{'Manufacturing' +}"> <input type="hidden" name="button" value="submit"> <input type="hidden" name="textarea" value="$FORM{'textarea'}"> <input type="submit" name="button" value=" yes "> </form> EndHTML print "</body></html>\n";

In reply to Re: Re: Re: foreach and if inside <<ENDHTML? Can they work? by frogboy
in thread foreach and if inside <<ENDHTML? Can they work? by frogboy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.