Need help with an order form - i copied code, and i don't know perl or CGI : (
i have several issues with my order form. it IS finally secure, however, i'm not sure what i'm supposed to be getting in email, but it's just one long string and it doesn't include anything past the items ordered. (i did a test order & rec'd my auto responder message, but i thought i coded it to go to a "thank you for your order page" http://2kcut.com/thanks.html but it just sat there.
so, number 1 is how to get ALL of my information via email (and is there a way to make it make sense ~ it's not encrypted, just one long string).
and i guess number 2 is how to get it to go to my "thank you" page.
i suppose i should just copy the code here for your review (and suggestions). keep in mind i don't know doo-dah about perl or cgi and it's got to be really easy for me to understand. i've GOT html but have not branched out from there.
your help means more than you can know!!!!!
<!--MILLENNIUM CUTLERY-->
<HTML>
<HEAD>
<TITLE>Millennium Cutlery Secure Order Form</TITLE>
<!--<X-SAS-WINDOW TOP="42" BOTTOM="477" LEFT="4" RIGHT="534">-->
</HEAD>
<BODY BGCOLOR="#ffffff" TEXT="#000000" LINK="#060000" VLINK="#006884">
<P>
<FONT FACE="Arial">
<FORM ACTION="mailto:[email protected]" METHOD="POST">
<INPUT TYPE="HIDDEN" NAME="success_message_url" VALUE="https://2kcut.com/thanks.html">
<INPUT TYPE="HIDDEN" NAME="email_to" VALUE="[email protected]">
<INPUT TYPE="HIDDEN" NAME="email_subject" VALUE="New ORDER has been placed">
<INPUT TYPE="HIDDEN" NAME="email_server" VALUE="mail.2kcut.com">
<INPUT TYPE="HIDDEN" NAME="logging:activity" VALUE>
<INPUT TYPE="HIDDEN" NAME="require_message" VALUE="Please enter your email address">
</FONT>
</P>
<!--begin header-->
<p align="left">
<a href="http://2kcut.com"><center><b><FONT FACE="Futura Bk BT" SIZE=7> Millennium Cutlery</FONT></b></center></a>
</p>
<H2><I><FONT FACE="Arial"> Secure Order Form: </FONT></I></H2>
<!--end header-->
<HR>
<P>
<B>
<FONT FACE="Arial">1. Fill In the fields below with the appropriate information</FONT></B></P>
<P>
<B>
<FONT FACE="Arial">2. Proof read what you have entered, paying especially close attention to credit card numbers and e-mail addresses.</FONT></B></P>
<P>
<B>
<FONT FACE="Arial">3. Click the "Submit" button below the form.</FONT></B></P>
<CENTER>
<H2><I><FONT FACE="Arial">Buyer Information</FONT></I></H2>
</CENTER>
<P>
<FONT FACE="Arial"><B>
<INPUT TYPE="TEXT" NAME="First Name" SIZE="20">- First Name<BR>
<INPUT TYPE="TEXT" NAME="Last Name" SIZE="20">- Last Name<BR>
<INPUT TYPE="TEXT" NAME="Billing Address" SIZE="30">- Billing Address <BR>
<INPUT TYPE="TEXT" NAME=" " SIZE="30">- Billing Address2<BR>
(if paying by credit card, this is the address to which your credit card bills are sent)<BR>
<INPUT TYPE="TEXT" NAME="City" SIZE="30">- City <BR>
<INPUT TYPE="TEXT" NAME="State" SIZE="2">- State
<INPUT TYPE="TEXT" NAME="Zip" SIZE="10">- Zip/Postal Code<BR>
<INPUT TYPE="TEXT" NAME="Country" SIZE="30">- Country<BR>
</P>
<P>
<INPUT TYPE="TEXT" NAME="require:email_from" SIZE="30">- E-mail Address
<FONT FACE="Arial" COLOR="#ff0000">** Required **</FONT>
<FONT FACE="Arial"><BR>
<INPUT TYPE="TEXT" NAME="require:email_from" SIZE="30">- E-mail Address
<FONT FACE="Arial" COLOR="#ff0000">(for verification)</FONT>
<FONT FACE="Arial"><BR>
<INPUT TYPE="TEXT" NAME="Phone Home" SIZE="12">- Phone (home)<BR>
<INPUT TYPE="TEXT" NAME="Phone Office" SIZE="12">- Phone (office)<BR>
<INPUT TYPE="TEXT" NAME="Fax" SIZE="12">- Fax<BR>
</P>
<P>
Ship- to address, if different: <BR>
Please note that if you are charging this order, for security reasons we will ship only to your billing address.<BR>
<BR>
<INPUT TYPE="TEXT" NAME="Ship To Address" SIZE="40"><BR>
<INPUT TYPE="TEXT" NAME=" " SIZE="40"><BR>
<INPUT TYPE="TEXT" NAME=" " SIZE="40"><BR>
<INPUT TYPE="TEXT" NAME=" " SIZE="40">
</P>
<CENTER>
<H2><I><FONT FACE="Arial">Items Ordered -Please Fill Out Completely</FONT></I></H2>
</CENTER>
<FONT FACE="Arial" SIZE=3>
Item 1.
<INPUT TYPE="TEXT" NAME="Quantity A" VALUE="Quantity: " SIZE="9">
<INPUT TYPE="TEXT" NAME="Item Number A" VALUE="Item #: " SIZE="15">
<INPUT TYPE="TEXT" NAME="Description 1" VALUE="Description: " SIZE="50">
<INPUT TYPE="TEXT" NAME="Quantity A" VALUE="Price: $" SIZE="9">
<HR NOSHADE>
Item 2.
<INPUT TYPE="TEXT" NAME="Quantity B" VALUE="Quantity: " SIZE="9">
<INPUT TYPE="TEXT" NAME="Item Number B" VALUE="Item #: " SIZE="15">
<INPUT TYPE="TEXT" NAME="Description 2" VALUE="Description: " SIZE="50">
<INPUT TYPE="TEXT" NAME="Quantity A" VALUE="Price: $" SIZE="9">
<HR NOSHADE>
Item 3.
<INPUT TYPE="TEXT" NAME="Quantity C" VALUE="Quantity: " SIZE="9">
<INPUT TYPE="TEXT" NAME="Item Number C" VALUE="Item #: " SIZE="15">
<INPUT TYPE="TEXT" NAME="Description 3" VALUE="Description: " SIZE="50">
<INPUT TYPE="TEXT" NAME="Quantity A" VALUE="Price: $" SIZE="9">
<HR NOSHADE>
Item 4.
<INPUT TYPE="TEXT" NAME="Quantity D" VALUE="Quantity: " SIZE="9">
<INPUT TYPE="TEXT" NAME="Item Number D" VALUE="Item #: " SIZE="15">
<INPUT TYPE="TEXT" NAME="Description 4" VALUE="Description: " SIZE="50">
<INPUT TYPE="TEXT" NAME="Quantity A" VALUE="Price: $" SIZE="9">
<HR NOSHADE>
Item 5.
<INPUT TYPE="TEXT" NAME="Quantity E" VALUE="Quantity: " SIZE="9">
Anonymous posted this at 19:52 — 27th September 1999.
They have: 5,633 posts
Joined: Jan 1970
Anonymous posted this at 19:52 — 27th September 1999.
They have: 5,633 posts
Joined: Jan 1970
thesbza posted this at 23:48 — 28th September 1999.
They have: 3 posts
Joined: Aug 1999
put enctype=text/plain in the form tag that should make it more readable in the email. Your going to need a cgi script to do the redirecting to a thank you page. I have a nice cgi script that only has one line to edit in the it. If you want me to email to you let me know [email protected]
----------
Steve Byrne
www.stevebyrne.com
tiny posted this at 17:53 — 30th September 1999.
They have: 89 posts
Joined: Jul 1999
Steve ~ yes, please send me the code. [email protected]
Dan ~ I don't know CGI or Perl, but would love to use whatever would be simplest. Can you please point me in the right direction to find something easier?
Thank you both SOOOOO much for you help.
Sincerely,
----------
[email protected] 2kcut.com
Millennium Cutlery: pocket knives & other cutlery-25% below retail
Military & Combat Knives. Hunting & Fishing Knives. Pocket Knives.
Kitchen Cutlery. Sharpeners.
Enter our Monthly Drawing!!
cds posted this at 21:12 — 30th September 1999.
They have: 359 posts
Joined: Mar 1999
Any particular reason why you didn't just use one of the popular 'form to email cgi scripts'? There are a bunch that are free and most come with pretty good instructions on how to set them up on your server.
----------
Dan
http://cds-computers.com
Dan
Recycle Video Games Network
Stupidity killed the cat, curiosity was framed!
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.