Jump to content

dropdown handling in pHP


JimKI

Recommended Posts

I have a form that has a drop down list of industry categories the drop down works but how do I get the selected category to show up when the e-mail is sent to me. Here is the 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://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><META NAME="robots" CONTENT="noindex,nofollow"></head><body ><div id="container" align="center"><div id="header"><p class="tenTitle">Promote Awareness, Access & Use of Your Goods and Services</p></div><div id="main"><?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 $numAmount = '0'; $optionValue= '0'; $AgencyType ='50'; $numTotal ='0'; //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 />"; // GIVE NUMBER OF RADIO BOX OPTIONS AND THEIR NAMES // 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'])) || (isset($_POST['submitCalc']))) { /*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 '<div id="container" ><div id="header"> <div class="blockTitle gradTitleBox generalGrad">Promote Awareness, Access & Use of Your Goods and Services<br /> </div></div><div id="main"><div id="tenForm"> <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>'; if ($problem == TRUE) { print '<p>Please fill in questions marked in <span style="color:red; font-weight:bold;">red</p>'; } $_POST['email'] = $_SESSION['email']; $_POST['name'] = $_SESSION['name']; print ' <form action="register_business.php" method="POST" > <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>*Industry Category </p> <select name="Category"> <option selected="selected" value="OTHR">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 colspan="2" align="left" valign="top" border="0"><p><strong>CALCULATE YOUR ORDER</strong><br /> Enter the total number of states ordered in the appropriate category based on the volume pricing below:<br /> Total States Ordered</p></td> </tr></table> <table width="669" border="1"> <tr> <td width="262" style="text-align: left">1 to 9 States at $89.95 per state/per year</td> <td width="144"> <input type="text" name="amount1" id="amount1" value="'.$stateAmount1.'"/></td> <td width="12">=</td> <td width="223"><input type="text" name="total1" id="total1" value="'.$stateTotal1.'"/></td> </tr> <tr> <td style="text-align: left">10 - 24 States at $59.95 per state/per year </td> <td><input type="text" name="amount2" id="amount2" value="'.$stateAmount2.'"/></td> <td>=</td> <td><input type="text" name="total2" id="total2" value="'.$stateTotal2.'"/></td> </tr> <tr> <td style="text-align: left">24 - 51 States at $39.95 per state/per year</td> <td> <input type="text" name="amount3" id="amount3" value="'.$stateAmount3.'"/> </td> <td>=</td> <td><input type="text" name="total3" id="total3" value="'.$stateTotal3.'" /></td> </tr> <tr> <td colspan="3" style="text-align: right">50 States, DC & Puerto Rico at $2,500/year</td> <td><input type="text" name="total4" id="total4" value="'.$stateTotal4.'" /></td> </tr> <tr> <td colspan="3" style="text-align: right">Add company logo at $24.95 per year </td> <td><input type="text" name="logo" id="logo" value="'.$logoTotal.'" /></td> </tr> <tr> <td colspan="2">Order Total: </td> <td>=</td> <td><input type="text" name="totalOrder" id="totalOrder" value="'.$totalOrder.'"/></td> </tr> <tr> <td colspan="2" align="center" valign="top" border="1"> <input type="submit" name="submitCalc" value="Calculate" /> </label></td> </tr> <tr> <td colspan="4" align="left" valign="top" border="0"> Submitting the form (* = required) </th> </tr> <tr> <td colspan="4" 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 colspan="4" 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 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['name']=$_POST['name']; // 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 = $eBody; $email_body = $eBodyQuestions. $logo. $totalOrder. $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 = "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; $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 '<!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" xml:lang="en" lang="en"><head> <title>Contact BUZGate</title> <meta http-equiv="content-type" content="text/html; charset=windows-1252" /> <meta http-equiv="Content-Language" content="EN" /> <meta name="copyright" content="Copyright © 2010 Knowledge Institute. All Rights Reserved." /> <link rel="icon" type="image/ico" href="http://buzgate.org/favicon.ico"> <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="" /> <link rel="stylesheet" type="text/css" href="/8.0/styles/default.css" /><link rel="stylesheet" type="text/css" href="/8.0/styles/.css" /><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;}</style></head><body><div id="watermark"><a name="tl"></a><input name="cbtest" type="hidden" value=""><div id="container"> <a href="/index.html"><img src="/8.0/images/logo_state.jpg" border="0" alt="Free Small Business Help and Resources" title="Free Small Business Help and Resources" id="logoState" /></a> <div id="topNavState"> <div id="joinState"> <div id="submenuState"> <!--<a href="register_login.html">Log In</a> --><a href="share_buz.html">Link to Buz</a> <a href="http://www.buzgate.org/8.0/pdf/brochure.pdf" target="_blank">Share Buz</a> <a href="contact.html">Contact</a> <a href="about.html">About</a> <a href="news.html">News</a> <a href="state_home.html?st=AL">AL Home</a><br /> <div class="marginTopFive"></div> <a href="ch_women.html"><span class="bigger">Women</span></a> <a href="ch_vethome.html"><span class="bigger">Veterans</span></a> <a href="ch_youth.html"><span class="bigger">Youth</span></a> <a href="add.html">Add Content</a> <a href="ask_buz.html">Ask Buz</a> </div> <img src="/8.0/images/img_join_corners.jpg" width="12" height="41" border="0" alt="Join" class="floatRight" /> <div id="joinTextState"><a href="http://visitor.constantcontact.com/d.jsp?m=1102417019256&p=oi" target="_new"><img src="/8.0/images/img_join_header.gif" border="0" alt="Receive Cash Flow Guide and other benefits" title="Receive Cash Flow Guide and other benefits" /></a></div> </div><div id="formBoxes2"> <div class="searchSub"> <form id="searchbox_005295786653352441206:kyzuiedfogq" action="http://www.google.com/cse"> <input type="hidden" name="cx" value="005295786653352441206:kyzuiedfogq" /> <input type="hidden" name="cof" value="FORID:0" /> <input name="q" type="text" id="searchBox" /> <input type="submit" name="sa" value="Search" id="searchButton" /> </form> </div> <div class="searchSub"> <form name="ccoptin" action="http://visitor.constantcontact.com/d.jsp" target="_blank" method="post"> <input type="text" name="ea" size="20" value="Submit Email" id="subscribeFont"> <input type="submit" name="go" value="Subscribe" class="submit" id="subscribeButton"> <input type="hidden" name="m" value="1102417019256"> <input type="hidden" name="p" value="oi"> </form> </div> <div id="chooseState2"> <form> <select onChange="if(options[selectedIndex].value) window.location.href=(options[selectedIndex].value)" id="chooseAState"> <option value="index.html">Choose a State</option><option value="/8.0/al/state_home.html">Alabama</option><option value="/8.0/ak/state_home.html">Alaska</option><option value="/8.0/az/state_home.html">Arizona</option><option value="/8.0/ar/state_home.html">Arkansas</option><option value="/8.0/ca/state_home.html">California</option><option value="/8.0/co/state_home.html">Colorado</option><option value="/8.0/ct/state_home.html">Connecticut</option><option value="/8.0/de/state_home.html">Delaware</option><option value="/8.0/dc/state_home.html">District of Columbia</option><option value="/8.0/fl/state_home.html">Florida</option><option value="/8.0/ga/state_home.html">Georgia</option><option value="/8.0/hi/state_home.html">Hawaii</option><option value="/8.0/id/state_home.html">Idaho</option><option value="/8.0/il/state_home.html">Illinois</option><option value="/8.0/in/state_home.html">Indiana</option><option value="/8.0/ia/state_home.html">Iowa</option><option value="/8.0/ks/state_home.html">Kansas</option><option value="/8.0/ky/state_home.html">Kentucky</option><option value="/8.0/la/state_home.html">Louisiana</option><option value="/8.0/me/state_home.html">Maine</option><option value="/8.0/md/state_home.html">Maryland</option><option value="/8.0/ma/state_home.html">Massachusetts</option><option value="/8.0/mi/state_home.html">Michigan</option><option value="/8.0/mn/state_home.html">Minnesota</option><option value="/8.0/ms/state_home.html">Mississippi</option><option value="/8.0/mo/state_home.html">Missouri</option><option value="/8.0/mt/state_home.html">Montana</option><option value="/8.0/ne/state_home.html">Nebraska</option><option value="/8.0/nv/state_home.html">Nevada</option><option value="/8.0/nh/state_home.html">New Hampshire</option><option value="/8.0/nj/state_home.html">New Jersey</option><option value="/8.0/nm/state_home.html">New Mexico</option><option value="/8.0/ny/state_home.html">New York</option><option value="/8.0/nc/state_home.html">North Carolina</option><option value="/8.0/nd/state_home.html">North Dakota</option><option value="/8.0/oh/state_home.html">Ohio</option><option value="/8.0/ok/state_home.html">Oklahoma</option><option value="/8.0/or/state_home.html">Oregon</option><option value="/8.0/pa/state_home.html">Pennsylvania</option><option value="/8.0/pr/state_home.html">Puerto Rico</option><option value="/8.0/ri/state_home.html">Rhode Island</option><option value="/8.0/sc/state_home.html">South Carolina</option><option value="/8.0/sd/state_home.html">South Dakota</option><option value="/8.0/tn/state_home.html">Tennessee</option><option value="/8.0/oz/state_home.html">Test State</option><option value="/8.0/zz/state_home.html">Test State</option><option value="/8.0/tx/state_home.html">Texas</option><option value="/8.0/ut/state_home.html">Utah</option><option value="/8.0/vt/state_home.html">Vermont</option><option value="/8.0/va/state_home.html">Virginia</option><option value="/8.0/wa/state_home.html">Washington</option><option value="/8.0/wv/state_home.html">West Virginia</option><option value="/8.0/wi/state_home.html">Wisconsin</option> </select> </form> </div></div><!-- IF EDITS ARE MADE HERE, CHANGE IN INC2/PHOENIX AS WELL --></div> <br clear="all" /> <div id="blurbBlock2"> <span class="growState" id="blurb">Discover Free Small Business Help in</span> <span class="growState" id="state">Alabama</span> </div> <div id="menu"> <div id="menuFH"> <img src="/8.0/images/img_menucorner_r_fh.jpg" width="9" height="9" border="0" alt="menu corner" class="floatRight" /> <img src="/8.0/images/img_menucorner_l_fh.jpg" width="9" height="9" border="0" alt="menu corner" class="floatLeft" /> <a href="fh.html">Free Help</a> </div> <div id="menuBKN"> <img src="/8.0/images/img_menucorner_r_bkn.jpg" width="9" height="9" border="0" alt="menu corner" class="floatRight" /> <img src="/8.0/images/img_menucorner_l_bkn.jpg" width="9" height="9" border="0" alt="menu corner" class="floatLeft" /> <a href="bkn.html">Solutions</a> </div> <div id="menuStart"> <img src="/8.0/images/img_menucorner_r_start.jpg" width="9" height="9" border="0" alt="menu corner" class="floatRight" /> <img src="/8.0/images/img_menucorner_l_start.jpg" width="9" height="9" border="0" alt="menu corner" class="floatLeft" /> <a href="start.html">Start</a> </div> <div id="menuGrow"> <img src="/8.0/images/img_menucorner_r_grow.jpg" width="9" height="9" border="0" alt="menu corner" class="floatRight" /> <img src="/8.0/images/img_menucorner_l_grow.jpg" width="9" height="9" border="0" alt="menu corner" class="floatLeft" /> <a href="grow.html">Grow</a> </div> <div id="menuFund"> <img src="/8.0/images/img_menucorner_r_fund.jpg" width="9" height="9" border="0" alt="menu corner" class="floatRight" /> <img src="/8.0/images/img_menucorner_l_fund.jpg" width="9" height="9" border="0" alt="menu corner" class="floatLeft" /> <a href="fund.html">Fund</a> </div> <div id="menuTrain"> <img src="/8.0/images/img_menucorner_r_train.jpg" width="9" height="9" border="0" alt="menu corner" class="floatRight" /> <img src="/8.0/images/img_menucorner_l_train.jpg" width="9" height="9" border="0" alt="menu corner" class="floatLeft" /> <a href="train.html">Train</a> </div> <div id="menuNet"> <img src="/8.0/images/img_menucorner_r_net.jpg" width="9" height="9" border="0" alt="menu corner" class="floatRight" /> <img src="/8.0/images/img_menucorner_l_net.jpg" width="9" height="9" border="0" alt="menu corner" class="floatLeft" /> <a href="network.html">Network</a> </div> <div id="menuBSS"> <img src="/8.0/images/img_menucorner_r_bss.jpg" width="9" height="9" border="0" alt="menu corner" class="floatRight" /> <img src="/8.0/images/img_menucorner_l_bss.jpg" width="9" height="9" border="0" alt="menu corner" class="floatLeft" /> <a href="bss.html">Success System</a> </div> </div> <div id="bodyBlock2"> <div id="bodyPadding"> <table width="650" border="1"> <tr> <td width="262" style="text-align: left">1 to 9 States at $89.95 per state/per year</td> <td width="144"> <input type="text" name="amount1" id="amount1" value="'.$stateAmount1.'"/></td> <td width="12">=</td> <td width="223"><input type="text" name="total1" id="total1" value="'.$stateTotal1.'"/></td> </tr> <tr> <td style="text-align: left">10 - 24 States at $59.95 per state/per year </td> <td><input type="text" name="amount2" id="amount2" value="'.$stateAmount2.'"/></td> <td>=</td> <td><input type="text" name="total2" id="total2" value="'.$stateTotal2.'"/></td> </tr> <tr> <td style="text-align: left">24 - 51 States at $39.95 per state/per year</td> <td> <input type="text" name="amount3" id="amount3" value="'.$stateAmount3.'"/> </td> <td>=</td> <td><input type="text" name="total3" id="total3" value="'.$stateTotal3.'" /></td> </tr> <tr> <td colspan="3" style="text-align: right">50 States, DC & Puerto Rico at $2,500/year</td> <td><input type="text" name="total4" id="total4" value="'.$stateTotal4.'" /></td> </tr> <tr> <td colspan="3" style="text-align: right">Add company logo at $24.95 per year </td> <td><input type="text" name="logo" id="logo" value="'.$logoTotal.'" /></td> </tr> <tr> <td colspan="2" style="text-align: right">Order Total: </td> <td>=</td> <td><input type="text" name="totalOrder" id="totalOrder" value="'.$totalOrder.'"/></td> </tr> <tr> <td colspan="4" style="text-align:center" valign="top" border="1"> <input type="submit" name="submitCalc" value="Calculate" /> </label> <input type="reset" value="Clear" /> <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> <div align="center"> <p align="center" class="textCenter">Thank you for Your Business Listing now click on the pay now button to continue order.</p> <table width="200" border="0" align="center"> <tr> <td align="center"><form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_s-xclick" ><input type="hidden" name="totalOrder" value="totalOrder"><input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_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" ></form></div></td> </tr></table> '; }?></div> <div id="footer"></div></div></div> </div> <div class="stayBuzed"> <!-- BEGIN: Constant Contact Stylish Email Newsletter Form --> <div align="center" style="padding-top:0px;"> <form name="ccoptin" action="http://visitor.constantcontact.com/d.jsp" target="_blank" method="post"> <span style="font-weight: bold; font-family:Arial; font-size:12px; color:#006699;">Newsletter Subscribe</span> <input type="text" name="ea" size="20" value="Enter Email" style="font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; font-size:10px; border:1px solid #999999;"> <input type="submit" name="go" value="GO" class="submit" style="font-family:Verdana,Arial,Helvetica,sans-serif; font-size:10px;"> <input type="hidden" name="m" value="1102417019256"> <input type="hidden" name="p" value="oi"> </form> <a href="http://www.constantcontact.com/safesubscribe.jsp" target="_blank"><img src="http://img.constantcontact.com/ui/images1/safe_subscribe_logo.gif" border="0" width="168" height="14" alt=""/></a> </div></div> <br clear="all" /> <!-- <a href="http://www.facebook.com/home.php#/group.php?gid=43645412340" target="_new"><img src="/8.0/images/hypermedia/icon_facebook.jpg" border="0" title="Buzgate in Facebook" alt="Buzgate in Facebook" /></a> --> <div id="homeFooterBodyBlock"> <p id="hmediaIcons"> <a href="http://www.facebook.com/profile.php?ref=profile&id=1499902867#/pages/Knowledge-Institute/286468223737" target="_new"><img src="/8.0/images/hypermedia/icon_facebook.jpg" border="0" title="Knowledge Institute on Facebook" alt="Knowledge Institute on Facebook" /></a> <a href="http://twitter.com/Buzgate" target="_new"><img src="/8.0/images/hypermedia/icon_twitter.jpg" border="0" title="Buzgate in Twitter" alt="Buzgate in Twitter" /></a> <a href="http://delicious.com/buzgate" target="_new"><img src="/8.0/images/hypermedia/icon_delicious.jpg" border="0" title="Buzgate in delicious" alt="Buzgate in delicious" /></a> <a href="http://digg.com/users/Buzgate" target="_new"><img src="/8.0/images/hypermedia/icon_digg.jpg" border="0" title="Buzgate in Digg" alt="Buzgate in Digg" /></a> <a href="http://buzgate.wordpress.com/" target="_new"><img src="/8.0/images/hypermedia/icon_wordpress.jpg" border="0" title="Dr. Bill's Blog" alt="Captain Buz's Blog" /></a> <a href="/8.0/mp3/econ_stimulus.mp3"><img src="/8.0/images/img_podcast2.gif" border="0" title="Economic Recovery Podcast" alt="Economic Recovery Podcast" /></a> <a href="learning_series.html"><img src="/8.0/images/hypermedia/icon_youtube.jpg" border="0" title="Learning Series" alt="Learning Series" /></a> </p> <div id="buzDescribed2">Buzgate.org is an award-winning public service initiative created to facilitate awareness, access and use of free small business help offered by America's government and nonprofit small business assistance agencies on a local, regional and national scale.</div> <p id="homeAwards"><a href="news_wib.html" class="first"><img src="/8.0/images/logo_awards_sba.gif" border="0" title="SBA Business Champion" alt="SBA Business Champion" style="margin-top:10px;" /></a><a href="awards_nhbr.html"><img src="/8.0/images/logo_awards_nhbr.gif" border="0" title="New Hampshire Business Review Award" alt="New Hampshire Business Review Award" style="margin-top:10px;" /></a> <a href="awards_entwomen.html"><img src="/8.0/images/logo_awards_entwomen.gif" border="0" title="Enterprising Woman of the Year Award" alt="Enterprising Woman of the Year Award" style="margin-top:10px;" /></a> <a href="news_msnbc.html"><img src="/8.0/images/logo_awards_msnbc.gif" border="0" title="MSNBC\'s Site of the Week" alt="MSNBC\'s Site of the Week" style="margin-bottom:15px;" /></a> <a href="awards_nhbrex.html"><img src="/8.0/images/logo_awards_nhbrex.gif" border="0" title="NHBR Business Excellence Award" alt="NHBR Business Excellence Award" /></a> <a href="news_kimkomando.html"><img src="/8.0/images/logo_awards_kimkomando.jpg" border="0" title="Kim Komando\'s Site of the Day" alt="Kim Komando\'s Site of the Day" style="margin-top:10px;" /></a></p><p id="featuredIn">As featured in:<br /><img src="/8.0/images/logo_wsj.gif" border="0" title="Wall Street Jounal" alt="Wall Street Jounal" style="margin-top:10px;" /> <img src="/8.0/images/logo_latimes.gif" border="0" title="Los Angeles Times" alt="Los Angeles Times" style="margin-top:10px;" /> <img src="/8.0/images/logo_bizweek.gif" border="0" title="Business Week" alt="Business Week" style="margin-top:10px;" /> <img src="/8.0/images/logo_inc.gif" border="0" title="Inc. Magazine" alt="Inc. Magazine" style="margin-top:10px;" /> <img src="/8.0/images/logo_pix.gif" border="0" title="WPIX News" alt="WPIX News" style="margin-top:10px;" /> <img src="/8.0/images/logo_forbes.gif" border="0" title="Forbes" alt="Forbes" style="margin-top:10px;" /> <img src="/8.0/images/logo_aol.gif" border="0" title="AOL Money and Finance" alt="AOL Money and Finance" style="margin-top:10px;" /> <img src="/8.0/images/logo_reuters.gif" border="0" title="Reuters" alt="Reuters" style="margin-top:10px;" /> <img src="/8.0/images/logo_yahoo.gif" border="0" title="Yahoo! Finance" alt="Yahoo! Finance" style="margin-top:10px;" /> <img src="/8.0/images/logo_shnews.gif" border="0" title="State House News Service" alt="State House News Service" style="margin-top:10px;" /></p> <div id="footerTitleBlock"> <div id="footerTitle">Champions of small business and educational content underwriters. <span id="champions"><a href="champions.html">View All</a></span></div> </div> <br /> <div id="footerLogos"><!-- *** excluded-2 ch_delta_dental.html --><a href="ch_veterans.html"><img src="/8.0/images/logo_vetcorp_footer.gif" border="0" class="footerlogo" title="Veterans Corp" alt="Veterans Corp" /></a><a href="ch_regus.html"><img src="/8.0/images/logo_regus_footer.gif" border="0" class="footerlogo" title="Regus" alt="Regus" /></a><a href="ch_irs.html"><img src="/8.0/images/logo_irs_footer.gif" border="0" class="footerlogo" title="Tax help" alt="Tax help" /></a><a href="http://www.myvbi.org" target="_blank" ><img src="/8.0/images/logo_vbi_footer.gif" border="0" class="footerlogo" title="Virtual Small Business Incubator" alt="Virtual Small Business Incubator" /></a><a href="ch_amexopen2.html"><img src="/8.0/images/logo_amex_footer.gif" border="0" class="footerlogo" title="American Express Open" alt="American Express Open" /></a><a href="ch_uconference.html"><img src="/8.0/images/logo_uconference_footer.gif" border="0" class="footerlogo" title="Unlimited Conferencing" alt="Unlimited Conferencing" /></a><div id="footer" class="textBlockFoot"> <img src="/8.0/images/img_blockcorner_right.gif" width="19" height="15" border="0" class="floatRight" id="indexBlockCornerR" /> <img src="/8.0/images/img_blockcorner_left.gif" width="19" height="15" border="0" class="floatLeft" /> www.BUZGate.org | A <a href="http://www.bdki.com" target="_new">Knowledge Institute</a> project, all rights reserved Copyright ©2010<br /> c/o PO Box 219, E. Kingston, NH 03827 USA | <a href="legal.html">Terms of Use</a><br /> <a href="contact.html">Contact Us</a> | <a href="about.html">About Us</a> | <a href="about_privacy.html">Privacy</a> | <a href="add.html">Add Content</a> | <a href="contact.html">Webmaster</a> | <a href="http://www.bdki.com/pdf/media_kit.pdf" target="_new">Underwrite Content</a> </div><div class="textCenter"> All content is state specific requiring you to choose a state to view small business resources. <br /><a href="/8.0/ak/register_business.html">AK</a><a href="/8.0/al/register_business.html">AL</a><a href="/8.0/ar/register_business.html">AR</a><a href="/8.0/az/register_business.html">AZ</a><a href="/8.0/ca/register_business.html">CA</a><a href="/8.0/co/register_business.html">CO</a><a href="/8.0/ct/register_business.html">CT</a><a href="/8.0/dc/register_business.html">DC</a><a href="/8.0/de/register_business.html">DE</a><a href="/8.0/fl/register_business.html">FL</a><a href="/8.0/ga/register_business.html">GA</a><a href="/8.0/hi/register_business.html">HI</a><a href="/8.0/ia/register_business.html">IA</a><a href="/8.0/id/register_business.html">ID</a><a href="/8.0/il/register_business.html">IL</a><a href="/8.0/in/register_business.html">IN</a><a href="/8.0/ks/register_business.html">KS</a><a href="/8.0/ky/register_business.html">KY</a><a href="/8.0/la/register_business.html">LA</a><a href="/8.0/ma/register_business.html">MA</a><a href="/8.0/md/register_business.html">MD</a><a href="/8.0/me/register_business.html">ME</a><a href="/8.0/mi/register_business.html">MI</a><a href="/8.0/mn/register_business.html">MN</a><a href="/8.0/mo/register_business.html">MO</a><a href="/8.0/ms/register_business.html">MS</a><a href="/8.0/mt/register_business.html">MT</a><a href="/8.0/nc/register_business.html">NC</a><a href="/8.0/nd/register_business.html">ND</a><a href="/8.0/ne/register_business.html">NE</a><a href="/8.0/nh/register_business.html">NH</a><a href="/8.0/nj/register_business.html">NJ</a><a href="/8.0/nm/register_business.html">NM</a><a href="/8.0/nv/register_business.html">NV</a><a href="/8.0/ny/register_business.html">NY</a><a href="/8.0/oh/register_business.html">OH</a><a href="/8.0/ok/register_business.html">OK</a><a href="/8.0/or/register_business.html">OR</a><a href="/8.0/oz/register_business.html">OZ</a><a href="/8.0/pa/register_business.html">PA</a><a href="/8.0/pr/register_business.html">PR</a><a href="/8.0/ri/register_business.html">RI</a><a href="/8.0/sc/register_business.html">SC</a><a href="/8.0/sd/register_business.html">SD</a><a href="/8.0/tn/register_business.html">TN</a><a href="/8.0/tx/register_business.html">TX</a><a href="/8.0/ut/register_business.html">UT</a><a href="/8.0/va/register_business.html">VA</a><a href="/8.0/vt/register_business.html">VT</a><a href="/8.0/wa/register_business.html">WA</a><a href="/8.0/wi/register_business.html">WI</a><a href="/8.0/wv/register_business.html">WV</a><a href="/8.0/zz/register_business.html">ZZ</a><p class="textCenter"> <a href="http://www.buzgate.org/smallbusinesshelp.html">Free Small Business Help Resources</a> | <a href="http://www.buzgate.org/smallbusinesssolutions.html">Free Small Business Solutions</a><br /> <a href="http://www.buzgate.org/smallbusinessstartup.html">Free Small Business Start-Up Resources</a> | <a href="http://www.buzgate.org/smallbusinessgrowth.html">Free Small Business Growth Resources</a><br /><a href="http://www.buzgate.org/smallbusinessfunding.html">Free Small Business Funding Resources</a> | <a href="http://www.buzgate.org/smallbusinesstraining.html">Free Small Business Training Resources</a><br /><a href="http://www.buzgate.org/smallbusinessnetworks.html">Free Small Business Network Resources</a> | <a href="http://www.buzgate.org/smallbusinesssuccess.html">Free Small Business Success System</a><br /></p> </div> </div></div></div><script type="text/javascript">try {var pageTracker = _gat._getTracker("UA-687745-3");pageTracker._trackPageview();} catch(err) {}</script></body></html>

Link to comment
Share on other sites

You can either have the dropdown submit the value that you want to appear in the email, or do a lookup to map the submitted value with whatever text you want to show up.
I don't know how to do either but the submit value one sounds easier. is my code set up to do this and do I need to add this if((isset($_POST['value'])) to where the other issets are
Link to comment
Share on other sites

The name in the $_POST array is the name you gave to the element. If the element has a name of "Category", then the value will be in $_POST['Category']. If they picked this option and submitted the form:<option value="COACH">Business Coaching </option>then $_POST['Category'] will be set to "COACH".

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...