JMack Posted December 23, 2010 Share Posted December 23, 2010 Drop downs not showing up in the e-mail everything else is please help can't find error <?php include ($_SERVER['DOCUMENT_ROOT'] . '/8.0/inc2/framework8.php'); include ($_SERVER['DOCUMENT_ROOT'] . '/8.0/inc2/declaration.html'); ?> <head> <title>Contact BUZGate</title> <?php include ($_SERVER['DOCUMENT_ROOT'] . '/8.0/inc2/content_type.html'); ?> <meta name="keywords" content="mentor, coaching, ementoring, business mentor, business coach," /> <meta name="title" content="Contact BUZGate" /> <meta name="description" content="" /> <meta name="intsearch" content="" /> <?php include ($_SERVER['DOCUMENT_ROOT'] . '/8.0/inc2/styles.html'); ?> <style type="text/css"> #bodyBlock2 #tenForm form table tr td #calculate { text-align: center; } #bodyBlock2 #tenForm form table tr td { text-align: left; } #bodyBlock2 #tenForm form table { text-align: left; } #bodyBlock2 #tenForm table tr td .Label { text-align: center; } </style> </head> <body> <?php # these are now set automatically by the site framework code #$page_name = "fh.php"; #$state_abbrv_up = "NH"; #$state_abbrv_low = "nh"; #$state_name = "New Hampshire"; include ($_SERVER['DOCUMENT_ROOT'] . '/8.0/inc2/header.html'); ?> <?php // NAME STEP AND GIVE VALUE TO QUESTION VARIABLES SO ERROR CHECKING DOES NOT HAVE TO BE RECREATED FOR EVERY PAGE $numListings = '15'; $listings = array(1 => '*Company Name', '*Address1', 'Address2', '*City', '*State', '*Zip/Postal Code', '*Web Address', '*First Name', '*Last Name', 'Title', '*Email', '*Business Phone', 'Fax', '*Description', '*Which state or states do you want your business promoted in? BUZGate reaches all 50 United States, District of Columbia and Puerto Rico.' ); //GIVE NUMBER OF QUESTIONS AND GIVE VALUE TO QUESTION VARIABLES SO ERROR CHECKING DOES NOT HAVE TO BE RECREATED FOR EVERY PAGE /* //get values from the $_post array $stateAmount1 = $_POST['amount1']; // echo "1 to 9 States at $89.95 per state/per year : ".$stateAmount1."<br />"; $stateAmount2 = $_POST['amount2']; //echo "10 - 24 States at $59.95 per state/per year : ".$stateAmount2."<br />"; $stateAmount3 = $_POST['amount3']; //echo "25 - 51 States at $49.95 per state/per year: ".$stateAmount3."<br />"; $stateTotal1 = $_POST['total1']; //echo "total1: ".$stateAmount1."<br />"; $stateTotal2 = $_POST['total2']; //echo "total2: ".$stateAmount2."<br />"; $stateTotal3 = $_POST['total3']; //echo "total3: ".$stateAmount3."<br />"; $stateTotal4 = $_POST['total4']; // echo "50 States, DC & Puerto Rico at $2,500/year: ".$stateTotal."<br />"; $logoTotal = $_POST['logo']; //echo "logo: ".$logoTotal."<br />"; //Calculate the state total 1: $stateTotal1 = 89.95 * $stateAmount1; //echo "total1: ".$stateTotal1."<br />"; //Calculate the state total 2: $stateTotal2 = 59.95 * $stateAmount2; //echo "total2: ".$stateTotal2."<br />"; //Calculate the state total 3: $stateTotal3 = 49.95 * $stateAmount3; //echo "total3: ".$stateTotal3."<br />"; //Calculate the total order: $totalOrder = $stateTotal1 + $stateTotal2 + $stateTotal3 + $stateTotal4 + $logoTotal; //echo "totalOrder: ".$totalOrder."<br />"; */ $logos = $_REQUEST["logo"]; $_POST['logo']; $logo = 'yes I want to add a logo'; $category = $_POST['category']; // GIVE NUMBER OF RADIO BOX OPTIONS AND THEIR NAMES // check if info checkbox is checked and create email if(isset($_REQUEST['logo'])) { ; }print_r($_POST); // GIVE NUMBER OF RADIO BOX OPTIONS AND THEIR NAMES $numOptions = '0'; // ADD QEUSTIONS AND ANSWERS TO $EMAIL_BODY AND $EMAIL_BODYCC BELOW // IF FORM WAS SUBMITTED, MOVE ON TO NEXT STEP (ERROR CHECKING) if((isset($_POST['submit']))) { /*CHECK FOR MISSING DATA (ERROR CHECKING) for ($i = 1; $i <= $numListings; $i++) { if (empty($_POST['data'.$i])) { $problem = TRUE; $dataSpan [$i] = '<span style="color:red; font-weight:bold;">'.$listings[$i].'</span>'; } else { $dataSpan [$i] = $listings[$i]; } } if (empty($_POST['email'])) { $problem = TRUE; $emailSpan = '<span style="color:red; font-weight:bold;">*Your email address</span>'; } else { $emailSpan = '*Your email address'; } if (!empty($_POST['name'])) { $problem = TRUE; $nameSpan = '<span style="color:red; font-weight:bold;">*Your Name</span>'; } else { $nameSpan = 'Your Name'; } */ //IF MISSING DATA, PREPARE TO DISPLAY FORM. IF NO MISSING DATA, MOVE ON TO NEXT STEP (THANK YOU, SEND EMAILS AND LINK TO NEXT FORM) if ($problem == TRUE) { $display = TRUE; } else { $display = FALSE; } } // IF THE FORM IS NOT BEING SUBMITTED (FIRST VISIT TO PAGE), SET THE // FORM DISPLAY VARIABLE TO TRUE AND DEFINE VALUES OF DATA#SPAN VARIABLES (QUESTIONS) /*else { $display = TRUE; for ($i = 1; $i <= $numListings; $i++) { $dataSpan[$i] = $listings[$i]; } } */ if ($display == TRUE) { print '<p>BUZGate reaches millions of prospective new customers each month. For less than $8.00 per month, increase awareness of your goods and services and generate more qualified leads with an interactive listing.</p> <p>Use the form below to choose what state(s) you want your listing to appear in and our marketing team will publish your business information and email you for content/link confirmation. </p> <p><strong>Pricing:</strong> $89.95 per state per year, plus $29.95 w/logo. Multiple state volume discounts available.</p> <p><strong>*</strong>Required Fields are marked with an asterisk and highlighted</p> There are two steps to the ordering process step one is fill out the info below then hit submit once hit submit you will be brought to the next step where you will order the amount of states with paypal and logo if you want to add a logo. '; if ($problem == TRUE) { print '<p>Please fill in questions marked in <span style="color:red; font-weight:bold;">red</p>'; } print ' <form action="register_business.php" method="POST" onsubmit="return validateForm(this,requiredTextFields,requiredSelectFields,requiredCheckboxFields);">> <table width="667" height="984" border="0" cellpadding="4" cellspacing="3"> <tr> <td colspan="2" align="left" valign="top" border="0">* Required fields are marked with an asterisk </td> </tr> <tr> <td colspan="2" align="left" valign="top" border="0"><p>Contact and Listing Information </p></td> </tr> <tr> <td colspan="2" align="left" valign="top" border="0"><p> <div class="fhFormLeft2"> *Industry Category </p> <select name="category"> <option value="OTHR" selected="selected">A new category </option> <option value="ACCTG">Accounting </option> <option value="ANGEL">Angel Funding </option> <option value="DBKRE">Backup/Recovery </option> <option value="COACH">Business Coaching </option> <option value="CRM">CRM </option> <option value="CLNMNT">Cleaning/Maint </option> <option value="COMP">Computer Hardware </option> <option value="CREDIT">Credit Programs </option> <option value="CREDRP">Credit Reporting </option> <option value="DLEARN">Distance Learning </option> <option value="ECOMM">E-commerce </option> <option value="HR">Employment / HR </option> <option value="FACTOR">Factoring </option> <option value="FINSVC">Financial Consult </option> <option value="BANK">Financial Instit. </option> <option value="FRANCH">Franchises </option> <option value="FUND">Funding Sources </option> <option value="DESIGN">Graphic Design </option> <option value="ITSYS">IT/Info Tech </option> <option value="INSURE">Insurance </option> <option value="LEASE">Leasing </option> <option value="LEGAL">Legal Services </option> <option value="MAIL">Mailing Solutions </option> <option value="MGMT">Management Consult </option> <option value="MKTPR">Marketing & P.R. </option> <option value="MEDIAT">Mediation </option> <option value="MCHSVC">Merchant Services </option> <option value="PUBS">Newspapers / Pubs </option> <option value="CONFER">Office & Conference </option> <option value="PRINT">Printing / Copying </option> <option value="REALTY">Real Estate </option> <option value="RETIRE">Retirement Planning </option> <option value="SEO">SEO </option> <option value="SALES">Sales Consulting/Svc </option> <option value="SHIP">Shipping / Courier </option> <option value="SOFTWR">Software </option> <option value="TELCOM">Telecom / ISP </option> <option value="TRANSP">Transportation </option> <option value="TRAVEL">Travel </option> <option value="UTILS">Utilities </option> <option value="VENCAP">Venture Capital </option> <option value="WEBCON">Web Conferencing </option> <option value="INTNET">Websites & Hosting </option> <option value="EMAIL">eMail Marketing </option> </select></td></tr> for ($i = 1; $i <= $numListings; $i++) { <tr> <td align="left" valign="top" border="0"> <p>'.$dataSpan[$i].'</p> <textarea rows="11" cols="20" id="data'.$i.'" name="data'.$i.'">'.$_POST['data'.$i].'</textarea> } </td> } </td> </tr> <tr> <td align="left" valign="top" border="0"><input type="checkbox" name="logo[]" value="'.$logo.'">Do you want a Logo? </td> </tr> <tr> <td colspan="4" align="left" valign="top" border="0"> Submitting the form (* = required) </th> </tr> <tr> <td colspan="4" class="submitCell" align="center"> <input type="reset" value="Clear" /> <input type="submit" name="submit" value="Submit" /><br /> <a href="'.$filePathState.'about_privacy.html" target="_blank"><span style="font-size:9px;">View our privacy policy</span></a> </td> </tr> </table> </form> </div> ';} else { // DEFINE SESSION VARIABLES $_SESSION['email']=$_POST['email']; $_SESSION['category']=$_POST['category']; // DEFINE VARIABLES FOR MAILING TO USER AND BUZGATE $to = 'askbuz@buzgate.org,'.$_POST['email']; $email_subject = "Contact and Listing Information"; For ($i = 1; $i <= $numListings; $i++) { $eBodyQuestions .= $listings[$i]."\n" .$_POST['data'.$i]."\n"; $email_body = $category.$eBodyQuestions.$logo; } //PLACE VARIABLES IN MAIL FUNCTION mail($to, $email_subject, $email_body); // DEFINE VARIABLES FOR MAILING TO USER AND BUZGATE $toCc = $_POST['emailCc']; $email_subjectCc = "Contact and Listing Information".$_POST['name']; $email_bodyCc = $_POST['name']." has sent this to you from www.BUZGate.org/8.0/".$state_abbrv_low."/".$page_name."\n Please contact us at askbuz@buzgate.org if you have received this in error.\n"; $email_bodyCc = $email_bodyCc.$eBodyQuestions.$category; $headersCc = "From:askbuz@buzgate.org";; //PLACE VARIABLES IN CC MAIL FUNCTION mail($toCc, $email_subjectCc, $email_bodyCc, $headersCc); // DISPLAY RESPONSE TO CORRECTLY FILLING OUT FORM print ' <div id="bodyBlock2"> <div id="bodyPadding"> <table> <tr> <td colspan="2" align="left" valign="top" border="0"><p><strong>PLACE YOUR ORDER</strong><br /> Click on the appropiate drop down for the total number of states ordered in the appropriate category based on the volume pricing below: </td> </tr></table> <div> <table> <tr> <td ><form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="JJV9N73526G9E"> <table width="600" border="1"> <tr><td><input type="hidden" name="on0" value="1 to 9 States at $89.95 per state/per year">1 to 9 States at $89.95 per state/per year</td><td align="right"><select name="os0"> <option value="1 State">1 State $89.95</option> <option value="2 States">2 States $179.90</option> <option value="3 States">3 States $269.85</option> <option value="4 States">4 States $359.80</option> <option value="5 States">5 States $449.75</option> <option value="6 States">6 States $539.70</option> <option value="7 States">7 States $629.65</option> <option value="8 States">8 States $719.60</option> <option value="9 States">9 States $809.55</option> </select> </td><td width="144"> <input type="hidden" name="currency_code" value="USD"> <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"> </td></tr></table></form> <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="L6AAZ883PS4DQ"> <table width="600" border="1"> <tr><td ><input type="hidden" name="on0" value="10 - 24 States at $59.95 per state/per year"> 10 - 19 States at $59.95 per state/per year</td><td align="right" ><select name="os0"> <option value="10 States">10 States $599.50</option> <option value="11 States">11 States $659.45</option> <option value="12 States">12 States $719.40</option> <option value="13 States">13 States $779.35</option> <option value="14 States">14 States $839.30</option> <option value="15 States">15 States $899.25</option> <option value="16 States">16 States $959.20</option> <option value="17 States">17 States $1,019.15</option> <option value="18 States">18 States $1,079.10</option> </select> </td><td width="144"> <input type="hidden" name="currency_code" value="USD"> <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></td></tr> </table></form> <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="9X7TJUXDN4PP4"> <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="NUHAENK3P6P7Q"> <table width="600" border="1"> <tr><td><input type="hidden" name="on0" value="20 - 24 States at $59.95 per state/per year">20 - 24 States at $59.95 per state/per year</td><td><select name="os0"> <option value="20 States">20 States $1,199.00</option> <option value="21 States">21 States $1,258.95</option> <option value="22 States">22 States $1,318.90</option> <option value="23 States">23 States $1,378.85</option> <option value="24 states">24 states $1,438.80</option> </select> </td><td width="144"> <input type="hidden" name="currency_code" value="USD"> <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></td></tr> </table></form> <table width="600" border="1"> <tr><td><input type="hidden" name="on0" value="25 - 51 States at $39.95 per state/per year"> 25 - 34 States at $39.95 per state/per year</td> <td ><select name="os0"> <option value="25 State">25 State $998.75</option> <option value="26 States">26 States $1,038.70</option> <option value="27 States">27 States $1,078.65</option> <option value="28 States">28 States $1,118.60</option> <option value="29 States">29 States $1,158.55</option> <option value="30 States">30 States $1,198.50</option> <option value="31 States">31 States $1,238.45</option> <option value="32 States">32 States $1,278.40</option> <option value="33 States">33 States $1,318.35</option> <option value="34 States">34 States $1,358.30</option> </select> </td><td width="144"> <input type="hidden" name="currency_code" value="USD"> <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></td></tr> </table></form> <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="3RR6KZ75677YN"> <table width="600" border="1"> <tr><td><input type="hidden" name="on0" value="35 - 44 States at $39.95 per state/per year">35 - 44 States at $39.95 per state/per year</td><td><select name="os0"> <option value="35 States">35 States $1,398.25</option> <option value="36 States">36 States $1,438.20</option> <option value="37 States">37 States $1,478.15</option> <option value="38 States">38 States $1,518.10</option> <option value="39 States">39 States $1,558.05</option> <option value="40 States">40 States $1,598.00</option> <option value="41 States">41 States $1,637.95</option> <option value="42 States">42 States $1,677.90</option> <option value="43 States">43 States $1,717.85</option> <option value="44 States">44 States $1,757.80</option> </select> </td><td width="144"> <input type="hidden" name="currency_code" value="USD"> <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></td></tr> </table></form> <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="K4FG2PW3GAYSG"> <table width="600" border="1"> <tr><td><input type="hidden" name="on0" value="45 - 51 States at $39.95 per state/per year">45 - 51 States at $39.95 per state/per year</td><td><select name="os0"> <option value="45 States">45 States $1,797.75</option> <option value="46 States">46 States $1,837.70</option> <option value="47 States">47 States $1,877.65</option> <option value="48 States">48 States $1,917.60</option> <option value="49 States">49 States $1,957.55</option> <option value="50 States">50 States $1,997.50</option> <option value="51 States">51 States $2,037.45</option> </select> </td><td width="144"> <input type="hidden" name="currency_code" value="USD"> <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></td></tr> </table></form> <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="TQNX2Z8BXH35W"> <table width="600" border="1"> <tr><td><input type="hidden" name="on0" value="Nationwide">Nationwide</td><td width="144" align="right"> <input name="submit" type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" alt="PayPal - The safer, easier way to pay online!" border="0"> <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></td></tr> </table></form> <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="W6MH3VZ6K74G4"> <table width="600" border="1"> <tr><td><input type="hidden" name="on0" value="Do you want a logo?">Do you want a logo?</td><td width="144" align="right"> <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></td></tr> </table></form></table> <table width="600" border="1"><tr><td align="center"> <a href="about_privacy.html" target="_blank"><span style="font-size:9px;">View our privacy policy</span></a></td> </tr></table> </div> </td> </tr> </table></div> '; include ($_SERVER['DOCUMENT_ROOT'] . '/8.0/inc2/stay_buzed.html'); include ($_SERVER['DOCUMENT_ROOT'] . '/8.0/inc2/footer.html'); }?> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/222510-drop-down-e-mail-issue/ 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.