Jump to content

JMack

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

JMack's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. 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>
  2. I know have this form but it doesn't calculate right it only puts 1 in the total states box and it put the amount of one in the total price box. help not sure what is wrong? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript"> function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } </script> <style type="text/css"> div { text-align: left; } </style> </head> <body> <a name="result"></a> <form action="orderprocess.php" method="post"> <div id="netFormTitle">Biz Partners Referral Registration</div> <div class="blockSubtitle netTextColor">Promote Your Business-to-Business Product and Services</div> <div>Leverage the BUZGate business-to-business referral network to generate leads and increase sales among small and medium-sized business. An interactive listing is less than $8.00 per month, per state.</div> <div>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. </div> <div><strong> Pricing:</strong> $89.95 per state per year, plus $29.95 w/logo. Multiple state discounts available.</div> <div> <p><span class="bold">*</span>Required Fields are marked with an asterisk and highlighted</p> <p> <legend>Contact and Listing Information</legend></p> <div class="fhFormLeft2"> <!-- HACK: HAD TO USE MARGIN TOP, VERTICAL-ALIGN:MIDDLE; DOESN'T WORK --></div> </div> <p>*Industry Category <br/> <select name="Industry Category" id="Industry Category"> <option>Accounting</option> <option>Angel Funding</option> <option>Business Coaching</option> <option> Computer HardwareCredit Programs</option> <option>Credit Reporting</option> <option>CRM</option> <option>Data Backup and Recovery</option> <option>Distance Learning</option> <option>E-commerce</option> <option>Employment / HR</option> <option>Factoring</option> <option>Financial Consultants</option> <option>Financial Institutions</option> <option>Franchise Opportunites</option> <option>Funding Sources</option> <option>Graphic Design</option> <option>eMail Marketing</option> <option>Information Technology</option> <option>Insurance</option> <option>Leasing</option> <option>Legal Services</option> <option>Mailing Solutions</option> <option>Management Consulting</option> <option>Marketing & P.R.</option> <option>Mediation & Dispute Resolution</option> <option>Merchant Services</option> <option>Newspapers / Publications</option> <option>Office & Conference</option> <option>Printing / Copying</option> <option>Real Estate</option> <option>Retirement Planning</option> <option>Sales Consulting/Svc</option> <option>Search Engine Optimization (SEO)</option> <option>Shipping / Courier</option> <option>Software</option> <option>Telecom / ISP</option> <option>Transportation</option> <option>Travel</option> <option>Utilities</option> <option>Venture Capital</option> <option>Web Conferencing</option> <option>Websites & Hosting</option> </select> <div class="fhFormLeft2"> <label for="CompanyName" class="Label">*Company Name</label> </div> <div class="fhFormRight2"> <input type="text" name="CompanyName" id="CompanyName" value="" size="40" maxlength="100" /> </div> <div class="fhFormLeft2"> <label for="Address1" class="Label">*Address 1</label></div> <div class="fhFormRight2"> <input type="text" name="Address1" id="Address1" value="" size="40" maxlength="50" /> </div> <div class="fhFormLeft2"> <label for="Address2" class="Label">Address 2</label> </div> <div class="fhFormRight2"> <input type="text" name="Address2" id="Address2" value="" size="40" maxlength="50" onfocus="statusBarMsg('Enter additional address information if needed.');" onblur="window.status='';" /> </div> <div class="fhFormLeft2"> <label for="City" class="Label">*City</label> </div> <div class="fhFormRight2"> <input type="text" name="City" id="City" value="" size="40" maxlength="50" onfocus="statusBarMsg('What is your city?');" onblur="window.status='';" class="required" /> </div> <div class="fhFormLeft2"> </div> <p>*State <select name="State" id="State"> <option selected="selected">AK</option> <option>AL</option> <option>AR</option> <option>AZ</option> <option>CA</option> <option>CO</option> <option>CT</option> <option>DC</option> <option>DE</option> <option>FL</option> <option>GA</option> <option>HI</option> <option>IA</option> <option>ID</option> <option>IL</option> <option>IN</option> <option>KS</option> <option>KY</option> <option>LA</option> <option>MA</option> <option>MD</option> <option>ME</option> <option>MI</option> <option>MN</option> <option>MO</option> <option>MS</option> <option>MT</option> <option>NC</option> <option>ND</option> <option>NE</option> <option>NH</option> <option>NJ</option> <option>NM</option> <option>NV</option> <option>NY</option> <option>OH</option> <option>OK</option> <option>OR</option> <option>PA</option> <option>PR</option> <option>RI</option> <option>SC</option> <option>SD</option> <option>TN</option> <option>TX</option> <option>UT</option> <option>VA</option> <option>VT</option> <option>WA</option> <option>WI</option> <option>WV</option> <option>WY</option> <option>Other</option> </select> <div class="fhFormLeft2"> <label for="Zip" class="Label">*Zip/Postal Code</label> </div> <div class="fhFormRight2"> <input type="text" name="Zip" id="Zip" value="" size="10" maxlength="15" onfocus="statusBarMsg(sWorldPostalCode)" onblur="window.status='';" onchange="if(!isZIPCode(stripCharsInBag(this.value, ZIPCodeDelimiters))){checkPostalCode(this, false)};" class="required" /> </div> <div class="fhFormLeft2"> <label for="WebAddress" class="Label">Web Address:</label> </div> <div class="fhFormRight2"> <input type="text" name="WebAddress" id="WebAddress" value="" size="40" onfocus="statusBarMsg('If more than one, you can enter multiple addresses separated by commas.')" onblur="window.status='';" > </div> <div class="fhFormLeft2"> <label for="FirstName" class="Label">*First Name</label> </div> <div class="fhFormRight2"> <input type="text" name="FirstName" id="FirstName" value="" size="40" maxlength="50" onchange="if(isItEmpty(this.value)) { alertMsg(this.form.name,this.name,'Please tell us your first name (given name).');}" class="required" /> </div> <div class="fhFormLeft2"> <label for="LastName" class="Label">*Last Name</label> </div> <div class="fhFormRight2"> <input type="text" name="LastName" id="LastName" value="" size="40" maxlength="50" onchange="if(isItEmpty(this.value)) { alertMsg(this.form.name, this.name, 'Please tell us your last name (family name).');}" class="required" /> </div> <div class="fhFormLeft2"> <label for="Title" class="Label">Title</label> </div> <div class="fhFormRight2"> <input type="text" name="Title" id="Title" value="" size="40" maxlength="50" /> </div> <div class="fhFormLeft2"> <label for="Email" class="Label">*Email</label> </div> <div class="fhFormRight2"> <input type="text" name="Email" id="Email" value="" size="40" maxlength="50" onfocus="statusBarMsg('Please enter your work email address.')" onblur="window.status='';" onchange="checkEmail(this,false);" class="required" /> </div> <div class="fhFormLeft2"> <label for="PhoneBiz" class="Label">*Business Phone</label> </div> <div class="fhFormRight2"> <input type="text" name="PhoneBiz" id="PhoneBiz" value="" size="15" maxlength="30" onfocus="statusBarMsg('Enter a 10-digit US phone, or an International phone number starting with +.')" onblur="window.status='';" onchange="normalizedPhone = stripCharsInBag (this.value, phoneNumberDelimiters); if (isUSPhoneNumber (normalizedPhone, false)) { this.value = reformatUSPhone (normalizedPhone); }" class="required" /> </div> <div class="fhFormLeft2"> <label for="PhoneFax" class="Label">Fax</label> </div> <div class="fhFormRight2"> <input type="text" name="PhoneFax" id="PhoneFax" value="" size="15" onfocus="statusBarMsg('Enter a 10-digit US phone, or an International phone number starting with +.')" onblur="window.status='';" onchange="normalizedPhone = stripCharsInBag (this.value, phoneNumberDelimiters); if (isUSPhoneNumber (normalizedPhone, false)) { this.value = reformatUSPhone (normalizedPhone); }" maxlength="30" /> </div> </fieldset> <div>Briefly describe your business offerings. This information will be used as a reference by our professional marketing team to create the interactive listing copy.</div> <div> <label for="Comments" class="Label"> *Description<br />(limit 1,000 words)<br /> <textarea name="Comments" id="Comments" onfocus="statusBarMsg('Additional Comments')" onblur="window.status='';" rows="3" cols="60" onchange="limitWords(this.form.Comments, 1000);" class="required"> </textarea> </label> </div> <div> Pricing per State:<br/> $89.95 per state up to 9 states<br/> $59.95 per state up to 24 states<br/> 24 and national listings (All 50 states plus DC and Puerto Rico), $39.95 per state </p> </div> <div> <fieldset class="required"> <legend>*Check State(s) Served</legend> <?php $totalProducts = count($_post['Region']); $productPrice = 89.95; $discountfor10to24 = 30.00; $discountfor25to52 = 50.00; $discount = ($totalProducts = 10 && $totalProducts < 25) ? $discountfor10to24 : (($totalProducts > 24) ? $discountfor25to52 : 0); $total = ($productPrice * $totalProducts) - $discount; ?> <table border="0" cellpadding="0"> <tr> <td><p align="center"> <input type="checkbox" name="Region[]" value="AK" /> AK<br /> <input type="checkbox" name="Region[]" value="AL" /> AL<br /> <input type="checkbox" name="Region[]" value="AR" /> AR<br /> <input type="checkbox" name="Region[]" value="AZ" /> AZ<br /> <input type="checkbox" name="Region[]" value="CA" /> CA</p></td> <td><p align="center"> <input type="checkbox" name="Region[]" value="CO" /> CO<br /> <input type="checkbox" name="Region[]" value="CT" /> CT<br /> <input type="checkbox" name="Region[]" value="DC" /> DC<br /> <input type="checkbox" name="Region[]" value="DE" /> DE<br /> <input type="checkbox" name="Region[]" value="FL" /> FL</p></td> <td><p align="center"> <input type="checkbox" name="Region[]" value="GA" /> GA<br /> <input type="checkbox" name="Region[]" value="HI" /> HI<br /> <input type="checkbox" name="Region[]" value="IA" /> IA<br /> <input type="checkbox" name="Region[]" value="ID" /> ID<br /> <input type="checkbox" name="Region[]" value="IL" /> IL</p></td> <td><p align="center"> <input type="checkbox" name="Region[]" value="IN" /> IN<br /> <input type="checkbox" name="Region[]" value="KS" /> KS<br /> <input type="checkbox" name="Region[]" value="KY" /> KY<br /> <input type="checkbox" name="Region[]" value="LA" /> LA<br /> <input type="checkbox" name="Region[]" value="MA" /> MA</p></td> <td><p align="center"> <input type="checkbox" name="Region[]" value="MD" /> MD<br /> <input type="checkbox" name="Region[]" value="ME" /> ME<br /> <input type="checkbox" name="Region[]" value="MI" /> MI<br /> <input type="checkbox" name="Region[]" value="MN" /> MN<br /> <input type="checkbox" name="Region[]" value="MO" /> MO</p></td> <td><p align="center"> <input type="checkbox" name="Region[]" value="MS" /> MS<br /> <input type="checkbox" name="Region[]" value="MT" /> MT<br /> <input type="checkbox" name="Region[]" value="NC" /> NC<br /> <input type="checkbox" name="Region[]" value="ND" /> ND<br /> <input type="checkbox" name="Region[]" value="NE" /> NE</p></td> <td><p align="center"> <input type="checkbox" name="Region[]" value="NH" /> NH<br /> <input type="checkbox" name="Region[]" value="NJ" /> NJ<br /> <input type="checkbox" name="Region[]" value="NM" /> NM<br /> <input type="checkbox" name="Region[]" value="NV" /> NV<br /> <input type="checkbox" name="Region[]" value="NY" /> NY</p></td> <td><p align="center"> <input type="checkbox" name="Region[]" value="OH" /> OH<br /> <input type="checkbox" name="Region[]" value="OK" /> OK<br /> <input type="checkbox" name="Region[]" value="OR" /> OR<br /> <input type="checkbox" name="Region[]" value="PA" /> PA<br /> <input type="checkbox" name="Region[]" value="PR" /> PR</p></td> <td><p align="center"> <input type="checkbox" name="Region[]" value="RI" /> RI<br /> <input type="checkbox" name="Region[]" value="SC" /> SC<br /> <input type="checkbox" name="Region[]" value="SD" /> SD<br /> <input type="checkbox" name="Region[]" value="TN" /> TN<br /> <input type="checkbox" name="Region[]" value="TX" /> TX</p></td> <td><p align="center"> <input type="checkbox" name="Region[]" value="UT" /> UT<br /> <input type="checkbox" name="Region[]" value="VA" /> VA<br /> <input type="checkbox" name="Region[]" value="VT" /> VT<br /> <input type="checkbox" name="Region[]" value="WA" /> WA<br /> <input type="checkbox" name="Region[]" value="WI" /> WI</p></td> <td><p align="center"> <input type="checkbox" name="Region[]" value="WV" /> WV<br /> <input type="checkbox" name="Region[]" value="WY" /> WY</p></td> </tr> </table> </fieldset> </div> <div> <input type="checkbox" name="logo" id="logo" /> Check box if to include optional logo placement $24.95 per year</div> <p> <label>Your total States = </label> <input name="totalProducts" type="text" value="" maxlength="18" /> <br /> <label>Your total order = </label> <input name="total" type="text" value="" maxlength="12" /> </p> <p align="center"> <input type="submit" name="calculate" id="submit" value="calculate" / "> <input name="Clear" type="button" value="Clear" /> <br /> </p> <div class="fhFormLeft2"><label for="SecureCode" class="Label">*Anti-Spam code</label> <?php print $Error['SecureCode'] ; ?> </div> <div class="fhFormRight2"> <input type="text" name="SecureCode" id="SecureCode" value="" size="6" maxlength="6" class="required" onChange="if(isItEmpty(this.value)) {alertMsg(this.form.name,this.name,'Please enter the anti-spam code to submit this form.');}"> <?php if ($_SESSION['secureImages'] > '') { print ' ' . $_SESSION['secureImages']; } ?> <br /> </div> <div> <br /><br /> </div> <div> <label for="CC" class="Label"> <input type="checkbox" name="CC" id="CC" value="sentCarbonCopy" checked> Check here to receive a copy of this form (at the above email address). </label> </div> <div><span style="text-align: center"> <label for="Reset" class="Label"> <input type="reset" name="Reset" id="Reset" value="Clear" /> </label> <input name="Action" type="hidden" value="processForm" /> <label for="Submit" class="Label"> <input type="submit" name="Submit" id="Submit" value="Submit Form" /> </label> </span></p> </div> </form> </body> </html>
  3. it returns the form with no calculations the text boxes are empty.
  4. I am having trouble getting this to work what am I doing wrong? <p class="tenTitle"><p class="tenTitle">Module 4i: Profit / Loss Forecast<br /> <?php // NAME STEP AND GIVE VALUE TO QUESTION VARIABLES SO ERROR CHECKING DOES NOT HAVE TO BE RECREATED FOR EVERY PAGE $stepNumber = '4i'; $numQuestions = '9'; //get values from the $_post array: $totalRev = $_POST['revenue']; echo "totalRev: ".$totalRev."<br />"; $vCost = $_POST['cost']; echo "vCost: ".$vCost."<br />"; $overheadCost = $_POST['overhead']; echo "overheadCost: ".$overheadCost."<br />"; $taxes = $_POST['taxes']; echo "taxes: ".$taxes."<br />"; $otherIncome = $_POST['other']; echo "other: ".$other."<br />"; //Calculate the gross profit: $gross = $totalRev - $vCost; echo "gross: ".$gross."<br />"; //Calculate the net profit: $netProfit = $gross - $overheadCost; echo "netProfit: ".$netProfit."<br />"; // Calculate Income after taxes: $afterTaxes = $netProfit - $taxes; echo "afterTaxes: ".$afterTaxes."<br />"; // Calculate the Total Income: $totalIncome = $afterTaxes + $otherIncome; echo "totalIncome: ".$TotalIncome."<br />"; // Print out the results print ' <table border="1" cellpadding="4" cellspacing="3" width="350"> <tr> <td align="left" valign="top" border="1"> Total Revenue</td><td><input type="text" style="40" name="totalRev" value="'.$totalRev.'"> </td> </tr> <tr> <td align="left" valign="top" border="1"> Less: Variable Cost</td><td><input type="text" style="40" name="vCost" value="'.$vCost.'"> </td> </tr> <tr> <td align="left" valign="top" border="1"> Gross profit</td><td><input type="text" style="40" name="grossProfit" value="'.$GrossProfit.'"> </td> </tr> <tr> <td align="left" valign="top" border="1"> Less: Overhead Cost</td><td> <input type="text" style="40" name="overhead" value="'.$overheadCost.'"> </td> </tr> <tr> <td align="left" valign="top" border="1"> Net Profit</td><td> <input type="text" style="40" name="netProfit" value="'.$netProfit.'"> </td> </tr> <tr> <td align="left" valign="top" border="1"> Taxes</td><td> <input type="text" style="40" name="taxes" value="'.$taxes.'"> </td> </tr> <tr> <td align="left" valign="top" border="1"> Profit After Taxes</td><td> <input type="text" style="40" name="profitAfterTaxes" value="'.$profitAfterTaxes.'"> </td> </tr> <tr> <td align="left" valign="top" border="1"> Other Income</td><td> <input type="text" style="40" name="otherIncome" value="'.$otherIncome.'"> </td> </tr> <tr> <td align="left" valign="top" border="1"> Net Income</td><td> <input type="text" style="40" name="netIncome" value="'.$netIncome.'"> </td> </tr> <tr> <td colspan="2" align="left" valign="top" border="1"> <input type="submit" name="submit" id="Submit" value="Calculate" /> </label></td> </tr> </table></form>'; // DEFINE SESSION VARIABLES $_SESSION['email']=$_POST['email']; $_SESSION['emailCc']=$_POST['emailCc']; $_SESSION['name']=$_POST['name']; // DEFINE VARIABLES FOR MAILING TO USER AND BUZGATE $to = 'askbuz@buzgate.org,'.$_POST['email']; $email_subject = "Step ".$stepNumber." in Buzgate's Five Step Program"; for ($i = 1; $i <= $numQuestions; $i++) { $eBodyQuestions .= $questions[$i]."\n" .$_POST['data'.$i]."\n"; } $email_body = $eBodyQuestions; $headers = "From:".$_POST['email']; //PLACE VARIABLES IN MAIL FUNCTION mail($to, $email_subject, $email_body, $headers); // DEFINE VARIABLES FOR MAILING TO USER AND BUZGATE $toCc = $_POST['emailCc']; $email_subjectCc = "Step ".$stepNumber." in Buzgate's Five Step Program from ".$_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; $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 echo "<p class='textCenter'>Thank you ".$_POST['name']." for completing Step ".$stepNumber."</p> <p class='textCenter'><a href='five_steps_4summary.html'>Click here</a> to continue to 4Summary</p> <p class='textCenter'>Or <a href='five_steps_".$stepNumber.".html'>try this form again</a>.</p>"; ?>
  5. I need to know where to put an e-mail validation code in my form so it can check to see if valid e-mail I have tr5ied to place it but nothing seems to work I have attached the form code could some let me know where the validation code would go thanks jim here is the validation code function check_email_address($email) { // First, we check that there's one @ symbol, and that the lengths are right if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)) { // Email invalid because wrong number of characters in one section, or wrong number of @ symbols. return false; } // Split it into sections to make life easier $email_array = explode("@", $email); $local_array = explode(".", $email_array[0]); for ($i = 0; $i < sizeof($local_array); $i++) { if (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])) { return false; } } if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])) { // Check if domain is IP. If not, it should be valid domain name $domain_array = explode(".", $email_array[1]); if (sizeof($domain_array) < 2) { return false; // Not enough parts to domain } for ($i = 0; $i < sizeof($domain_array); $i++) { if (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$", $domain_array[$i])) { return false; } } } return true; } Form Code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <META NAME="robots" CONTENT="noindex,nofollow"> <link href="../../../styles/_e-learning.css" rel="stylesheet" type="text/css" /> </head> <body background="images/background.jpg"> <div id="container" align="center"><a name="result"></a><div id="header"> <p class="tenTitle">Exercise 1a: 10 Great Reasons To Be In Business</p></div> <div id="main"> <?php // SET VARIABLES AND ARRAYS $stepNumber = '1a'; $numQuestions = '10'; $questions = array(1 => '1. Be your own boss', '2. Ability to set your own hours and working conditions', '3. Hard work directly benefits you and your business', '4. Undertaking an exciting new venture', '5. Control over earning and growth potential', '6. Unlimited opportunities to challenge yourself and learn', '7. Chance to be creative and take risks', '8. Ability to fully use your skills, knowledge, and talent', '9. Desire financial independence', '10. Ability to work in the industry/field of your choice' ); $numOptions = 5; $options = array(1 => 'Strongly Agree', 'Agree', 'Neutral', 'Disagree', 'Strongly Disagree' ); // IF FORM WAS FILLED OUT, CALCULATE SCORE, ELSE SCORE EQUALS 0 $score[] = 0; for ($i = 1; $i <= $numQuestions; $i++) { if(isset($_POST['radio'.$i])){ if ($options[$_POST['radio'.$i]] == $options[1]) { $score[$i] = 5; } elseif ($options[$_POST['radio'.$i]] == $options[2]) { $score[$i] = 4; } elseif ($options[$_POST['radio'.$i]] == $options[3]) { $score[$i] = 3; } elseif ($options[$_POST['radio'.$i]] == $options[4]) { $score[$i] = 2; } else { $score[$i] = 1; } } else { $score[$i] = 0; } } // UNIQUE TO FIRST SESSION OF EACH STEP $_SESSION['totalScore'] = 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 <= $numQuestions; $i++) { if (empty($_POST['radio'.$i])) { $problem = TRUE; $dataSpan[$i] = '<span style="color:red; font-weight:bold;">'.$questions[$i].'</span>'; } else { $dataSpan[$i] = $questions[$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['emailCc']) && (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 <= $numQuestions; $i++) { $dataSpan[$i] = $questions[$i]; } $emailSpan = '*Your email address'; $nameSpan = 'Your Name'; } if ($display == TRUE) { print '<p><strong>Instructions</strong>: Below are some of the attitudes and desires that many successful entrepreneurs possess. Read the list carefully. Think about how each of the statements relate to you - your ideas, desires, motivations, and areas of comfort or discomfort. In this exercise, quickly check each category with the answer that best relates to you, then go back and think about each - perhaps you might change your mind with this further refection - you can always come back later and change your answer.</p>'; if ($problem == TRUE) { print '<p>Please fill in questions marked in <span style="color:red; font-weight:bold;">red</p>'; } print '<div id="tenForm"> <form action="ten_steps_'.$stepNumber.'.html#result" method="POST" > <table border="0" cellpadding="4" cellspacing="3">'; for ($i = 1; $i <= $numQuestions; $i++) { echo '<tr> <td align="left" valign="top" border="0" class="submitCell"> <p>'.$dataSpan[$i].'</p>'; for ($j = 1; $j <= $numOptions; $j++) { $elemID = "radio" . $i . "_" . $j; $elemName = "radio" . $i; $chk = ""; if(isset($_POST[$elemName])) { if($_POST[$elemName] == ((string) $j)) { $chk = "CHECKED"; } } echo "<input type=\"radio\" id=\"$elemID\" name=\"$elemName\" $chk value=\"$j\">$options[$j]\n"; } print '</td> </tr>'; } print '</table> <table border="0" cellpadding="3" cellspacing="2"> <tr> <td align="left" valign="top" border="0">'; include ($filePath.'/e-learning/tenScores.html'); print '</th> </tr> <tr> <td align="left" valign="top" border="0"> Submitting the form (* = required) </th> </tr> <tr> <td class="submitCell"> '.$emailSpan.'<br /> (to receive a copy of this form)<br /> <input type="text" size="40" maxlength="100" name="email" value="'.$_POST['email'].'" /> </td> </tr> <tr> <td class="submitCell"> Send Copy To eMentor<br /> <input type="text" size="40" maxlength="100" name="emailCc" value="'.$_POST['emailCc'].'" /> </td> </tr> <tr> <td class="submitCell"> '.$nameSpan.'<br /> (*required if sending a copy)<br /> <input type="text" size="40" maxlength="100" name="name" value="'.$_POST['name'].'" /> </td> </tr> <tr> <td 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['emailCc']=$_POST['emailCc']; $_SESSION['name']=$_POST['name']; $_SESSION['score'.$stepNumber]=array_sum($score); $_SESSION['totalScore'] = $_SESSION['totalScore'] + $_SESSION['score'.$stepNumber]; // DEFINE VARIABLES FOR MAILING TO USER AND BUZGATE $to = 'askbuz@buzgate.org,'.$_POST['email']; $email_subject = "Your Results: 10 Great Reasons To Be In Business"; for ($i = 1; $i <= $numQuestions; $i++) { $eBodyQuestions .= $questions[$i]."\n" .$options[$_POST[radio.$i]]."\n\n"; } $email_body = $eBodyQuestions."Score: ".array_sum($score)."\n INTERPRETING THE SCORE:\n Score of 34-50: High Match\n Score of 21-35: Medium Match\n Score of 0-20: Low Match\n Total Score: ".$_SESSION['totalScore']."\n\n"; $headers = "From:".$_POST['email']; //PLACE VARIABLES IN MAIL FUNCTION mail($to, $email_subject, $email_body, $headers); // DEFINE VARIABLES FOR MAILING TO USER AND BUZGATE $toCc = $_POST['emailCc']; $email_subjectCc = "Your Results: 10 Great Reasons To Be In Business from ".$_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\n"; $email_bodyCc = $email_bodyCc.$email_body; $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 echo "<p class='textCenter' >Thank you ".$_POST['name']." for completing Step ".$stepNumber."</p> <p class='textCenter'>Your Step ".$stepNumber." Score: ".$_SESSION['score'.$stepNumber]."<br /> Your Total Score: ".$_SESSION['totalScore']."</p>"; include ($filePath.'/inc2/tenScores.html'); echo "<p class='textCenter'><a href='ten_steps_1b.html'>Click here</a> to continue to 1b: 10 Great Reasons Not To Be In Business</p>" ; } ?> </div> <div id="footer"></div></div> </body> </html>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.