ArtistInFla Posted October 13, 2007 Share Posted October 13, 2007 ???I am new to php and wanted to put in a simple order form on my site. I purchased PHPFormWizard to help me write the scripts. Problem is I can't get any help on their site and the script doesn't seem to do anything. Is anyone familiar witht he product and can anyone help me. I'M CLUELESS!! This is my form and below is the PHP the program produced: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>Order Form</title> </head> <body> <form action="sendemail.php" method="post"> <table style="text-align: left; width: 591px; height: 32px;" border="0" cellpadding="2" cellspacing="2"> <tbody> <tr> <td style="text-align: center;"><big><big><big><big>Mark Noll Designs<br /> Online Order Form</big></big></big></big></td> </tr> </tbody> </table> <table style="width: 590px;" border="0" cellpadding="4" cellspacing="4"> <tbody> <tr> <td style="width: 200px;"><input name="1desc" value="Small Plumeria" type="hidden" />Small Plumeria </td> <td style="width: 217px; text-align: center;">$45.00</td> <td>Qty: <select name="1qty[]"> <option> </option> <option>1 </option> <option>2 </option> <option>3 </option> <option>4 </option> <option>5 </option> <option>6 </option> <option>7 </option> <option>8 </option> <option>9 </option> <option>10 </option> </select> </td> </tr> <tr> <td style="width: 200px;"><input name="2desc" value="Medium Plumeria" type="hidden" />Medium Plumeria</td> <td style="width: 217px; text-align: center;">$45.00</td> <td>Qty: <select name="2qty[]"> <option> </option> <option>1 </option> <option>2 </option> <option>3 </option> <option>4 </option> <option>5 </option> <option>6 </option> <option>7 </option> <option>8 </option> <option>9 </option> <option>10 </option> </select> </td> </tr> <tr> <td style="width: 200px;"><input name="3desc" value="Large Plumeria" type="hidden" />Large Plumeria </td> <td style="width: 217px; text-align: center;">$45.00</td> <td>Qty: <select name="3qty[]"> <option> </option> <option>1 </option> <option>2 </option> <option>3 </option> <option>4 </option> <option>5 </option> <option>6 </option> <option>7 </option> <option>8 </option> <option>9 </option> <option>10 </option> </select> </td> </tr> <tr> <td style="width: 200px;"><input name="4desc" value="Small Flat Maile" type="hidden" />Small Flat Maile </td> <td style="width: 217px; text-align: center;">$45.00</td> <td>Qty: <select name="4qty[]"> <option> </option> <option>1 </option> <option>2 </option> <option>3 </option> <option>4 </option> <option>5 </option> <option>6 </option> <option>7 </option> <option>8 </option> <option>9 </option> <option>10 </option> </select> </td> </tr> <tr> <td style="width: 200px;"><input name="5desc" value="Medium Flat Maile" type="hidden" />Medium Flat Maile</td> <td style="width: 217px; text-align: center;">$45.00</td> <td>Qty: <select name="5qty[]"> <option> </option> <option>1 </option> <option>2 </option> <option>3 </option> <option>4 </option> <option>5 </option> <option>6 </option> <option>7 </option> <option>8 </option> <option>9 </option> <option>10 </option> </select> </td> </tr> <tr> <td style="width: 200px;"><input name="6desc" value="Large Flat maile" type="hidden" />Large Flat Maile</td> <td style="width: 217px; text-align: center;">$45.00</td> <td>Qty: <select name="6qty[]"> <option> </option> <option>1 </option> <option>2 </option> <option>3 </option> <option>4 </option> <option>5 </option> <option>6 </option> <option>7 </option> <option>8 </option> <option>9 </option> <option>10 </option> </select> </td> </tr> <tr> <td style="width: 200px;"><input name="7desc" value="Small Raised Maile" raised="" maile="" type="hidden" />Small Raised Maile</td> <td style="width: 217px; text-align: center;">$45.00</td> <td>Qty: <select name="7qty[]"> <option> </option> <option>1 </option> <option>2 </option> <option>3 </option> <option>4 </option> <option>5 </option> <option>6 </option> <option>7 </option> <option>8 </option> <option>9 </option> <option>10 </option> </select> </td> </tr> <tr> <td style="width: 200px;"><input name="8desc" value="Medium Raised Maile" type="hidden" />Medium Raised Maile </td> <td style="width: 217px; text-align: center;">$45.00</td> <td>Qty: <select name="8qty[]"> <option> </option> <option>1 </option> <option>2 </option> <option>3 </option> <option>4 </option> <option>5 </option> <option>6 </option> <option>7 </option> <option>8 </option> <option>9 </option> <option>10 </option> </select> </td> </tr> <tr> <td style="width: 200px;"><input name="9desc" value="Large raised Maile" type="hidden" />Large Raised Maile</td> <td style="width: 217px; text-align: center;">$45.00</td> <td>Qty: <select name="9qty[]"> <option> </option> <option>1 </option> <option>2 </option> <option>3 </option> <option>4 </option> <option>5 </option> <option>6 </option> <option>7 </option> <option>8 </option> <option>9 </option> <option>10 </option> </select> </td> </tr> <tr> <td style="width: 200px;"><input name="10desc" value="Small Hibiscus" type="hidden" />Small Hibiscus </td> <td style="width: 217px; text-align: center;">$45.00</td> <td>Qty: <select name="10qty[]"> <option> </option> <option>1 </option> <option>2 </option> <option>3 </option> <option>4 </option> <option>5 </option> <option>6 </option> <option>7 </option> <option>8 </option> <option>9 </option> <option>10 </option> </select> </td> </tr> <tr> <td style="width: 200px;"><input name="11desc" value="Medium Hibiscus" type="hidden" />Medium Hibiscus</td> <td style="width: 217px; text-align: center;">$45.00</td> <td>Qty: <select name="11qty[]"> <option> </option> <option>1 </option> <option>2 </option> <option>3 </option> <option>4 </option> <option>5 </option> <option>6 </option> <option>7 </option> <option>8 </option> <option>9 </option> <option>10 </option> </select> </td> </tr> <tr> <td style="width: 200px;"><input name="12desc" value="Large Hibiscus" type="hidden" />Large Hibiscus </td> <td style="width: 217px; text-align: center;">$45.00</td> <td>Qty: <select name="12qty[]"> <option> </option> <option>1 </option> <option>2 </option> <option>3 </option> <option>4 </option> <option>5 </option> <option>6 </option> <option>7 </option> <option>8 </option> <option>9 </option> <option>10 </option> </select> </td> </tr> </tbody> </table> <br /> <div style="text-align: left;"> <div style="text-align: center; color: rgb(51, 51, 255);"></div> <table style="text-align: left; width: 580px; height: 53px;" border="0" cellpadding="2" cellspacing="2"> <tbody> <tr> <td style="width: 580px; text-align: center; color: rgb(51, 51, 255);"><big><big><big>General Information</big></big></big></td> </tr> </tbody> </table> <br /> </div> <br /> <table style="width: 572px; height: 172px;"> <tbody> <tr> <td align="right"><b>First Name: </b> </td> <td><input name="first_name" size="15" /> <b>Last Name: </b> <input name="last_name" size="15" /> <br /> </td> </tr> <tr> <td align="right"><b>Address: </b> </td> <td><input name="address" size="30" /><br /> </td> </tr> <tr> <td align="right"><b>City: </b> </td> <td><input name="city" size="15" /> <b>State: </b> <input name="state" size="2" maxlength="2" /> </td> <td align="right"><b> Zip: </b> <input name="zip" size="10" /><br /> </td> </tr> <tr> <td align="right"><b>Country: </b> </td> <td><input name="country" size="45" value="USA" /><br /> </td> </tr> <tr> <td align="right"><b>Phone Number: </b> </td> <td><strong><input name="phone" size="15" /><br /> </strong></td> </tr> <tr> <td align="right"><b>E-Mail Address: </b> </td> <td><input name="email" size="30" /></td> </tr> </tbody> </table> <table style="text-align: left; width: 571px; height: 32px;" border="0" cellpadding="2" cellspacing="2"> <tbody> <tr> <td><font face="Arial" size="2"> <center> <input value="order" name="B1" type="submit" /> <input value="Reset" name="B2" type="reset" /></center> </font></td> </tr> </tbody> </table> <hr /> </form> <br /> </body> </html> PHP <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <?php # ---------------------------------------------------- # ----- # ----- This script was generated by PHP-Form Wizard 1.2.5 on 10/13/2007 at 1:34:17 AM # ----- # ----- http://www.tools4php.com # ----- # ---------------------------------------------------- #-----// Receiving variables @$pfw_ip= $_SERVER['REMOTE_ADDR']; @$1desc = addslashes($_POST['1desc']); @$1qty = $_POST['1qty[]']; @$1qty = @implode("&" , $1qty); @$2desc = addslashes($_POST['2desc']); @$2qty = $_POST['2qty[]']; @$2qty = @implode("&" , $2qty); @$3desc = addslashes($_POST['3desc']); @$3qty = $_POST['3qty[]']; @$3qty = @implode("&" , $3qty); @$4desc = addslashes($_POST['4desc']); @$4qty = $_POST['4qty[]']; @$4qty = @implode("&" , $4qty); @$5desc = addslashes($_POST['5desc']); @$5qty = $_POST['5qty[]']; @$5qty = @implode("&" , $5qty); @$6desc = addslashes($_POST['6desc']); @$6qty = $_POST['6qty[]']; @$6qty = @implode("&" , $6qty); @$7desc = addslashes($_POST['7desc']); @$7qty = $_POST['7qty[]']; @$7qty = @implode("&" , $7qty); @$8desc = addslashes($_POST['8desc']); @$8qty = $_POST['8qty[]']; @$8qty = @implode("&" , $8qty); @$9desc = addslashes($_POST['9desc']); @$9qty = $_POST['9qty[]']; @$9qty = @implode("&" , $9qty); @$10desc = addslashes($_POST['10desc']); @$10qty = $_POST['10qty[]']; @$10qty = @implode("&" , $10qty); @$11desc = addslashes($_POST['11desc']); @$11qty = $_POST['11qty[]']; @$11qty = @implode("&" , $11qty); @$12desc = addslashes($_POST['12desc']); @$12qty = $_POST['12qty[]']; @$12qty = @implode("&" , $12qty); @$first_name = addslashes($_POST['first_name']); @$last_name = addslashes($_POST['last_name']); @$address = addslashes($_POST['address']); @$city = addslashes($_POST['city']); @$state = addslashes($_POST['state']); @$zip = addslashes($_POST['zip']); @$country = addslashes($_POST['country']); @$phone = addslashes($_POST['phone']); @$email = addslashes($_POST['email']); // Validation //Sending Email to form owner $pfw_header = "From: $email\n" . "Reply-To: $email\n"; $pfw_subject = "Order"; $pfw_email_to = "sales@marknolldesigns.com"; $pfw_message = "Visitor's IP: $pfw_ip\n" . "1desc: $1desc\n" . "1qty: $1qty\n" . "2desc: $2desc\n" . "2qty: $2qty\n" . "3desc: $3desc\n" . "3qty: $3qty\n" . "4desc: $4desc\n" . "4qty: $4qty\n" . "5desc: $5desc\n" . "5qty: $5qty\n" . "6desc: $6desc\n" . "6qty: $6qty\n" . "7desc: $7desc\n" . "7qty: $7qty\n" . "8desc: $8desc\n" . "8qty: $8qty\n" . "9desc: $9desc\n" . "9qty: $9qty\n" . "10desc: $10desc\n" . "10qty: $10qty\n" . "11desc: $11desc\n" . "11qty: $11qty\n" . "12desc: $12desc\n" . "12qty: $12qty\n" . "first_name: $first_name\n" . "last_name: $last_name\n" . "address: $address\n" . "city: $city\n" . "state: $state\n" . "zip: $zip\n" . "country: $country\n" . "phone: $phone\n" . "email: $email\n"; @mail($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ; header("Location: index.html"); ?> </head> <body> <br> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/73053-solved-phpformwizard-script/ Share on other sites More sharing options...
MasterACE14 Posted October 13, 2007 Share Posted October 13, 2007 Please put it all between code tags(look for the hash(#) button), and only post the main part of it. Which in this case I would say would only be the PHP part of it. Regards ACE Quote Link to comment https://forums.phpfreaks.com/topic/73053-solved-phpformwizard-script/#findComment-368438 Share on other sites More sharing options...
ArtistInFla Posted October 14, 2007 Author Share Posted October 14, 2007 OK, I figured it out. I had numbers in some of my field names on my form. By the way the PHPFormWizard works great!!!. It created the php script to create the emails, csv file ans SQL Quote Link to comment https://forums.phpfreaks.com/topic/73053-solved-phpformwizard-script/#findComment-369069 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.