Question

how to send the drop down choice in a form via email

Asked by: safeerhshah

i am adding the files, all the vaues of the txtfield are sent and receive by email but it leaves the type of service value blank. can anyone pls help me and let me know how to send this value.
thanks.

onlinetest.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>Topaz</title>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Language" content="en-uk" />
<meta name="ROBOTS" content="ALL" />
<meta name="Rating" content="General" />
<meta name="Author" content="TOPAZ BUSINESS SYSTEMS LIMITED" />
<meta name="revisit-after" content="5 Days" />
<meta name="doc-class" content="Living Document" />
<meta name="description" content="Topaz" />
<meta name="keywords" content="Konica Minolta" />
<link rel="STYLESHEET" type="text/css" href="styles/main.css">
<link rel="STYLESHEET" type="text/css" href="styles/form.css">
<link rel="stylesheet" type="text/css" media="print" href="styles/print.css" />


<script type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}
//-->
</script>
<script type="text/javascript" src="js/multiValue.js">
</script>

<style type="text/css">
<!--
.style23 {font-size: 11px}
.style24 {color: #0000FF}
.style25 {color: #FFFFFF}
-->
</style>
</head>

<body id="online">
<div id="containerinner">
      <div id="section"><img src="images/g_spacer.gif" width="680" height="24" alt="" usemap="#menu" border="0" /></div>
<div id="submenu">
            <ul>
            <li><a href="online.htm" class="active">Online Services</a></li>
                  <li><a href="remotesupport.htm">Remote Support</a></li>
                  <li><a href="http://download6.konicaminolta.eu/konmin/public/&amp;&amp;BEU&amp;EN&amp;&amp;&amp;&amp;&amp;&amp;0&amp;&amp;&amp;0&amp;&amp;0&amp;&amp;0">Downloads</a></li>
                  <li><a href="http://kb.topaz.uk.com">Knowledgebase</a></li>
      </ul>
  </div>


      <div id="print"><a href="javascript:window.print();" title="Print this page"><img src="images/b_print.gif" width="63" height="22" alt="Print this page" border="0" /></a></div>
      <div id="g-topaz-logo"><a href="../home.htm" title="Topaz home page"><img src="images/g_topaz_logo.gif" width="122" height="153" border="0" alt="Topaz Logo" /></a></div>
      <div id="g-header-logos"><img src="images/g_header_logos.jpg" width="259" height="87" alt="ISO 9001, Investor In People and 15 year anniversary logos" /></div>
      <div id="g-header-copier"><img src="images/g_header_copier.jpg" width="557" height="104" alt="KM copier" /></div>
      <div id="g-header-fill"><img src="images/g_header_fill.jpg" width="122" height="38" alt="header fill" /></div>
      <div id="g-header-menu"><img src="images/g_header_menu.gif" width="680" height="29" alt="Website menu" /></div>
      <div id="content">
        <div id="copy">
                  <h1>Online service</h1>
                  <h3><center>
                    <h2>Welcome to Topaz Call Logging for Copiers, Printers and Fax Machines</h2>
                  </center></h3>

            <div class="h3" style="margin:10px 0;">
                  <h3 class="style11">To use this online service you will need to have the following information:</h3>
                  <p style="margin:0;font:normal 11px Trebuchet MS, sans-serif;">
                    <b>
                    1. Serial Number of the Konica Minolta Machine
                    <br>2. Service Call or Consumable Type you wish to report/order
                    <br>3. Contact Details                    </b>
                    <br><br>NOTE: Items marked with a red asterisk are required fields.                  </p>
            </div>
            
            

                        <label for="choice">
                              <p style="font:normal 11px Arial, sans serif;"><b>What type of Service do you wish to request?</b>
                              <br>(Select from the drop-down list)
                              <br>
                              <select id="choice" name="choice" onChange="ShowReg(this.selectedIndex)">
                                     <option value='0'>Select Type of Service
                                    <option value='1'>Consumable Delivery
                                    <option value='2'>Engineer Visit - Routine Service / PM
                                    <option value='3'>Engineer Visit - Machine Problem
                              </select>
                              <br>
            
                        
                              <form id="verticalForm" action="http://www.topaz.uk.com/process1_topaz.php" method="post">
                  <fieldset>
                              
                  <div id = "Consumable Delivery" style="display:none" >
            
                        <p style="font:bold 11px Trebuchet MS, sans-serif;">CONSUMABLE DELIVERY
                               <!-- consumables -->
                        <hr noshade size="1">
                          Please complete the following fields as applicable:</p>
                        <label for="cyan" style="float:left;width:20%; background-color:#00FFFF">
           
                        <div align="center"><span>(C) Cyan toner</span>
                            <select id="cyan" name="cyan" style="font:bold 11px Trebuchet MS, sans-serif; width:60px;">
                              <option value="0">0</option>
                              <option value="1">1</option>
                              <option value="2">2</option>
                        </select>
            
                      
              </label> </div>
                        
                        
                        <label for="magenta" style="float:left;width:20%; background-color:#FF00FF">
                        <div align="center">(M) Magenta toner
                          <select id="magenta" name="magenta" style="font:bold 11px Trebuchet MS, sans-serif; width:60px;">
                          <option value="0">0</option>
                          <option value="1">1</option>
                          <option value="2">2</option>
                        </select>
               
                  </label></div>
                        <label for="yellow" style="float:left;width:20%; background-color:#FFFF00">
                      <div align="center">(Y) Yellow toner
                        <select id="yellow" name="yellow" style="font:bold 11px Trebuchet MS, sans-serif; width:60px;">
                          <option value="0">0</option>
                          <option value="1">1</option>
                          <option value="2">2</option>
                      </select>
           
                  </label></div>
                        <label for="black" style="float:left;width:20%;background-color:#000000">
                              <div align="center"><span class="style25">(K) Black toner</span></span>
                                <select id="black" name="black" style="font:bold 11px Trebuchet MS, sans-serif; width:60px;">
                                  <option value="0">0</option>
                                  <option value="1">1</option>
                                  <option value="2">2</option>
                              </select>
            
                    </label> </div>
                    
                  <br>
                          <br>
                          <br />
                          <br />
                        <label for="waste toner bottle" style="float:left;width:80%;">
                              Waste Toner Bottle
                              &nbsp;
                              <select id="wastetonerbottle" name="wastetonerbottle" style="width:60px;">
                      <option value="0">0</option>
                      <option value="1">1</option>
                      <option value="2">2</option>
                </select>
                              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Staples
                        &nbsp;&nbsp;
                        <select id="staples" name="staples" style="width:60px;">
                  <option value="0">0</option>
                  <option value="1">1</option>
                  <option value="2">2</option>
                </select>
                        <br>
                         
                        <br />
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
                  
                                                <br>
                         
                              <br />
            
                                                <br>
                         
                              <br />
            
                        
                  <p align="center"> Meter Reading<span style="font:bold 14px Trebuchet MS, sans-serif;color:red;">&#42;</span></p>
                              
                  <p align="center"><label> <span>(K) Black</span>                                            
                      <input name="blackreading" style="float;width:80px; type="text" id="blackreading" onblur="MM_validateForm('blackreading','','NisNum');return document.MM_returnValue" size="10" maxlength="12" />
                      <span class="style11">&nbsp;&nbsp;&nbsp;&nbsp;<span class="style24">(C) Colour</span></span>
                    <input name="colourreading" style="float;width:80px; type="text" id="colourreading" onblur="MM_validateForm('colourreading','','NisNum');return document.MM_returnValue" size="10" maxlength="12" />
                   
                          </label></p>
                              <br>
                         
                              <br />
                  <label for="po">Purchase order number
                  <input id="po" name="po" type="text" />
                  </label>

                        <label for="delivery">
                        <br><input type="checkbox" name="special" id="special" value="yes" class="check" /> Standard delivery is 2/3 days. Click in the box for Next Day Delivery (charge £15 + VAT).                        </label>
                        <br>
                        <hr noshade size="1">
                  </div>


<div id="Engineer Visit - Routine Service / PM" style="display:none">
                        <p style="font:bold 11px Trebuchet MS, sans-serif; #CCC;">ENGINEER VISIT - ROUTINE SERVICE / PM
                        <!-- engineer - problem -->
                        <hr noshade size="1"></p>
                                                      </div>

                                          
                  <div id="Engineer Visit - Machine Problem" style="display:none">
                  <p style="font:bold 11px Trebuchet MS, sans-serif; #CCC;">ENGINEER VISIT - MACHINE PROBLEM
                  <!-- engineer - problem -->
                        <hr noshade size="1"></p>
                  <label for="code">
                              Please enter the code displayed on your machine:
                              <br>
                              <input id="code" name="code" type="text" />
                        </label>

                        <label for="working" >
                              Is it working <input type="radio" name="working"  id="working" value="working"  class="radio" /> or completely down <input type="radio" name="working" id="working" value="down"  class="radio" />?                        </label>
                        <label for="fault">
                              <p style="font:normal 11px Trebuchet MS, sans-serif;"><b>Which of the following choices describes the fault/issue with your machine?</b><br> (Select ALL that apply)
                              <ul class="columns style23" id="col1">
                              <li><input type="checkbox" name="jamsmisfeeds" class="checkbox" / >
                                Jams / Misfeeds</li>
                              <li>
                                
                              <input type="checkbox" name="doublesiding" class="checkbox" / >
                                Problems when Double Siding</li>
                              <li><input type="checkbox" name="blackmarks" class="checkbox" / >Black Marks</li>
                              <li><input type="checkbox" name="darkcopies" class="checkbox" / >Dark Copies</li>
                              <li><input type="checkbox" name="feintcopies" class="checkbox" / >Feint Copies</li>
                              <li><input type="checkbox" name="fadedlines" class="checkbox" / >Faded Lines</li>
                              <li><input type="checkbox" name="colourimageproblems" class="checkbox" / >Colour Image Problems</li>
                              </ul>
                              <ul class="columns style23" id="col2">
                              <li><input type="checkbox" name="documentfeeder" class="checkbox" / >Document Feeder Fault/Problems</li>
                              <li><input type="checkbox" name="crookedcopies" class="checkbox" / >Crooked Copies</li>
                              <li><input type="checkbox" name="noisy" class="checkbox" / >Noisy Operation</li>
                              <li><input type="checkbox" name="collationstampling" class="checkbox" / >Collation / Stapling Problems</li>
                              <li><input type="checkbox" name="bookletfolding" class="checkbox" / >Booklet Folding Problems</li>
                              <li><input type="checkbox" name="printing" class="checkbox" / >Printing Issues</li>
                              <li><input type="checkbox" name="printerdriver" class="checkbox" / >Printer Driver Issues</li>
                              </ul>
                        </label>
                        </p>
                        <label for="description" ><br />
                        <br />
                        <br />
Please provide a brief description of the problem: <br />
<textarea style="float;width:85%; cols="" rows="4" name="description" id="description" ></textarea>
                  </label>
                        <br>
                        <hr noshade size="1">
</div>

<!-- general -->
<table>
                  
                  <tr>
                        <td><b>Equipment Serial Number:</b></td>
                        <td><input id="serial" name="serial" type="text" /></td>
                        <td span style="font:bold 14px Arial, sans serif;color:red;"> &#42;</span>
                        </td>
                  </tr>
                  <tr>
                        <td><b>Company Name:</b></td>
                        <td><input id="company" name="company" type="text" /></td>
                        <td span style="font:bold 14px Arial, sans serif;color:red;">&#42;</td>
                  </tr>
                  <tr>
                        <td><b>Contact Name:</b></td>
                        <td><input id="contact" name="contact" type="text" /></td>
                        <td span style="font:bold 14px Arial, sans serif;color:red;"> &#42;</td>
                  </tr>
                  <tr>
                        <td><b>E-mail:</b></td>
                        <td><input name="email" type="text" id="email" onblur="MM_validateForm('email','','NisEmail');return document.MM_returnValue" /></td>
                        <td span style="font:bold 14px Arial, sans serif;color:red;">&#42;</td>
                  </tr>
                  <tr>
                        <td><b>Telephone, incl. extn:</b></td>
                        <td><input id="tel" name="tel" type="text" /></td>
                        <td span style="font:bold 14px Arial, sans serif;color:red;">&#42;</td>
                  </tr>
                  </table>
            
                        <label><center><input name="submit" type="submit" class="submit" onclick="MM_validateForm('serial','','R');return document.MM_returnValue" value="Send" />
                        </center></label>
                  </fieldset>
                  </form>
                  </form>
                <p><span class="style1">VAT NO.</span> GB 575 9237 96 <span class="style1">Registered in England No.</span> 2546633 <span class="style1">Registered Office :</span> Brunel Way Stroudwater Business Park Stonehouse Gloucestershire GL10 3SW</p>
        </div>
      </div>
</div>
<div id="base">
      <div id="copyright"><!-- #BeginLibraryItem "/Library/copyright.lbi" --> &copy;TOPAZ BUSINESS SYSTEMS LIMITED 2009<!-- #EndLibraryItem --></div>
      <div id="telephone"><!-- #BeginLibraryItem "/Library/telephone.lbi" -->UK | t: 01453 793100 | f: 01453 793101<!-- #EndLibraryItem --></div>
</div>
<div id="textlinks">
<a href="../home.htm" title="HOME">HOME</a> | <a href="about_bird.htm" title="ABOUT TOPAZ">ABOUT TOPAZ</a> | <a href="news.htm" title="NEWS">NEWS</a> | <a href="location.htm" title="LOCATION">LOCATION</a> | <a href="online.htm" title="ONLINE SERVICE">ONLINE SERVICE</a> | <a href="products.htm" title="PRODUCTS &amp; SOLUTIONS">PRODUCTS &amp; SOLUTIONS</a> | <a href="people.htm" title="CONTACT US">CONTACT US</a></div>
<map name="menu">
<area coords="8,0,54,24" alt="Go HOME" href="../home.htm" />
<area coords="63,0,161,24" alt="Go ABOUT TOPAZ" href="about_intro.htm" />
<area coords="169,0,211,24" alt="Go NEWS" href="news.htm" />
<area coords="220,0,291,24" alt="Go LOCATION" href="location.htm" />
<area coords="299,0,411,24" alt="Go ONLINE SERVICE" href="online.htm" />
<area coords="417,0,570,24" alt="Go PRODUCTS & SUPPORT" href="products.htm" />
<area coords="581,0,668,24" alt="Go CONTACT US" href="people.htm" />
</map>
</body>
</html>

the java script file code is below
multivalue.js

/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Jay Rumsey | http://www.nova.edu/~rumsey/ */
function ShowReg(op) {
  document.getElementById('Consumable Delivery').style.display='none';
  document.getElementById('Engineer Visit - Routine Service / PM').style.display='none';
  document.getElementById('Engineer Visit - Machine Problem').style.display='none';

  if (op == 1) {
    document.getElementById('Consumable Delivery').style.display="block";
  }
  if (op == 2) {
    document.getElementById('Engineer Visit - Routine Service / PM').style.display="block";
  }
  if (op == 3) {
    document.getElementById('Engineer Visit - Machine Problem').style.display="block";
  }
}
// JavaScript Document




<?php
 
$ref99 = $_SERVER['HTTP_REFERER'];
 
if (isset($_POST["choice"])) {
	$choice = Trim(stripslashes($_POST['choice'])); 
} else {
	$choice = "";
}
 
if (isset($_POST["cyan"])) {
	$cyan = Trim(stripslashes($_POST['cyan'])); 
} else {
	$cyan = "";
}
if (isset($_POST["magenta"])) {
	$magenta = Trim(stripslashes($_POST['magenta'])); 
} else {
	$magenta = "";
}
if (isset($_POST["yellow"])) {
	$yellow = Trim(stripslashes($_POST['yellow'])); 
} else {
	$yellow = "";
}
if (isset($_POST["black"])) {
	$black = Trim(stripslashes($_POST['black'])); 
} else {
	$black = "";
}
if (isset($_POST["staples"])) {
	$staples = Trim(stripslashes($_POST['staples'])); 
} else {
	$staples = "";
}
 
if (isset($_POST["wastetonerbottle"])) {
	$wastetonerbottle = Trim(stripslashes($_POST['wastetonerbottle'])); 
} else {
	$wastetonerbottle = "";
}
 
if (isset($_POST["blackreading"])) {
	$blackreading = Trim(stripslashes($_POST['blackreading'])); 
} else {
	$blackreading = "";
}
 
if (isset($_POST["colourreading"])) {
	$colourreading = Trim(stripslashes($_POST['colourreading'])); 
} else {
	$colourreading = "";
}
 
if (isset($_POST["po"])) {
	$po = Trim(stripslashes($_POST['po'])); 
} else {
	$po = "";
}
if (isset($_POST["special"])) {
	$special = Trim(stripslashes($_POST['special'])); 
} else {
	$special = "";
}
if (isset($_POST["code"])) {
	$code = Trim(stripslashes($_POST['code'])); 
} else {
	$code = "";
}
if (isset($_POST["working"])) {
	$working = Trim(stripslashes($_POST['working']));
} else {
	$working = "";
}
 
if (isset($_POST["jamsmisfeeds"])) {
	$jamsmisfeeds = Trim(stripslashes($_POST['jamsmisfeeds'])); 
} else {
	$jamsmisfeeds = "";
}
if (isset($_POST["doublesiding"])) {
	$doublesiding = Trim(stripslashes($_POST['doublesiding']));
} else {
	$doublesiding = "";
}
if (isset($_POST["blackmarks"])) {
	$blackmarks = Trim(stripslashes($_POST['blackmarks'])); 
} else {
	$blackmarks = "";
}
if (isset($_POST["darkcopies"])) {
	$darkcopies = Trim(stripslashes($_POST['darkcopies'])); 
} else {
	$darkcopies = "";
}
if (isset($_POST["feintcopies"])) {
	$feintcopies = Trim(stripslashes($_POST['feintcopies'])); 
} else {
	$feintcopies = "";
}
if (isset($_POST["fadedlines"])) {
	$fadedlines = Trim(stripslashes($_POST['fadedlines'])); 
} else {
	$fadedlines = "";
}
if (isset($_POST["colourimageproblems"])) {
	$colourimageproblems = Trim(stripslashes($_POST['colourimageproblems'])); 
} else {
	$colourimageproblems = "";
}
if (isset($_POST["documentfeeder"])) {
	$documentfeeder = Trim(stripslashes($_POST['documentfeeder'])); 
} else {
	$documentfeeder = "";
}
if (isset($_POST["crookedcopies"])) {
	$crookedcopies = Trim(stripslashes($_POST['crookedcopies'])); 
} else {
	$crookedcopies = "";
}
if (isset($_POST["noisy"])) {
	$noisy = Trim(stripslashes($_POST['noisy'])); 
} else {
	$noisy = "";
}
if (isset($_POST["collationstampling"])) {
	$collationstampling = Trim(stripslashes($_POST['collationstampling'])); 
} else {
	$collationstampling = "";
}
if (isset($_POST["bookletfolding"])) {
	$bookletfolding = Trim(stripslashes($_POST['bookletfolding'])); 
} else {
	$bookletfolding = "";
}
if (isset($_POST["printing"])) {
	$printing = Trim(stripslashes($_POST['printing'])); 
} else {
	$printing = "";
}
if (isset($_POST["printerdriver"])) {
	$printerdriver = Trim(stripslashes($_POST['printerdriver']));
} else {
	$printerdriver = "";
}
 
if ($jamsmisfeeds=="on") {$jamsmisfeeds="Yes";}
if ($doublesiding=="on") {$doublesiding="Yes";}
if ($blackmarks=="on") {$blackmarks="Yes";}
if ($darkcopies=="on") {$darkcopies="Yes";}
if ($feintcopies=="on") {$feintcopies="Yes";}
if ($fadedlines=="on") {$fadedlines="Yes";}
if ($colourimageproblems=="on") {$colourimageproblems="Yes";}
if ($documentfeeder=="on") {$documentfeeder="Yes";}
if ($crookedcopies=="on") {$crookedcopies="Yes";}
if ($noisy=="on") {$noisy="Yes";}
if ($collationstampling=="on") {$collationstampling="Yes";}
if ($bookletfolding=="on") {$bookletfolding="Yes";}
if ($printing=="on") {$printing="Yes";}
if ($printerdriver=="on") {$printerdriver="Yes";}
 
$description = Trim(stripslashes($_POST['description'])); 
$serial = Trim(stripslashes($_POST['serial'])); 
$company = Trim(stripslashes($_POST['company'])); 
$contact = Trim(stripslashes($_POST['contact'])); 
$email = Trim(stripslashes($_POST['email'])); 
$tel = Trim(stripslashes($_POST['tel'])); 
 
// prepare email body text
$Body = "";
$Body .= "<html>";
$Body .= "<head>";
$Body .= "	<title>Topaz</title>";
$Body .= "</head>";
$Body .= "<body>";
$Body .= "<style type='text/css'>";
$Body .= "body {";
$Body .= "	font:normal 11px Arial, sans-serif;";
$Body .= "	color:#333;";
$Body .= "}";
$Body .= "span.hilite {";
$Body .= "	background:#993333;";
$Body .= "	padding:0 4px;";
$Body .= "	color:white;";
$Body .= "	font-weight:bold;";
$Body .= "}";
$Body .= "</style>";
$Body .= "What type of service: <span class='hilite'>";
$Body .= $choice;
$Body .= "</span><br>";
$Body .= "Cyan toner:  <span class='hilite'>";
$Body .= $cyan;
$Body .= "</span><br>";
$Body .= "Magenta toner:  <span class='hilite'>";
$Body .= $magenta;
$Body .= "</span><br>";
$Body .= "Yellow toner:  <span class='hilite'>";
$Body .= $yellow;
$Body .= "</span><br>";
$Body .= "Black toner:  <span class='hilite'>";
$Body .= $black;
$Body .= "</span><br>";
$Body .= "Waste toner bottle:  <span class='hilite'>";
$Body .= $wastetonerbottle;
$Body .= "</span><br>";
$Body .= "Staples:  <span class='hilite'>";
$Body .= $staples;
$Body .= "</span><br>";
$Body .= "Black reading:  <span class='hilite'>";
$Body .= $blackreading;
$Body .= "</span><br>";
$Body .= "Colour reading:  <span class='hilite'>";
$Body .= $colourreading;
$Body .= "</span><br>";
$Body .= "Purchase number:  <span class='hilite'>";
$Body .= $po;
$Body .= "</span><br>";
$Body .= "Next day delivery:  <span class='hilite'>";
$Body .= $special;
$Body .= "</span><br>";
$Body .= "Machine code:  <span class='hilite'>";
$Body .= $code;
$Body .= "</span><br>";
$Body .= "Is the machine working:  <span class='hilite'>";
$Body .= $working;
$Body .= "</span><br>";
$Body .= "Jams / Misfeeds:  <span class='hilite'>";
$Body .= $jamsmisfeeds;
$Body .= "</span><br>";
$Body .= "Problems when Double Siding:  <span class='hilite'>";
$Body .= $doublesiding;
$Body .= "</span><br>";
$Body .= "Black Marks:  <span class='hilite'>";
$Body .= $blackmarks;
$Body .= "</span><br>";
$Body .= "Dark Copies:  <span class='hilite'>";
$Body .= $darkcopies;
$Body .= "</span><br>";
$Body .= "Feint Copies:  <span class='hilite'>";
$Body .= $feintcopies;
$Body .= "</span><br>";
$Body .= "Faded Lines:  <span class='hilite'>";
$Body .= $fadedlines;
$Body .= "</span><br>";
$Body .= "Colour Image Problems:  <span class='hilite'>";
$Body .= $colourimageproblems;
$Body .= "</span><br>";
$Body .= "Document Feeder Fault/Problems:  <span class='hilite'>";
$Body .= $documentfeeder;
$Body .= "</span><br>";
$Body .= "Crooked Copies:  <span class='hilite'>";
$Body .= $crookedcopies;
$Body .= "</span><br>";
$Body .= "Noisy Operation:  <span class='hilite'>";
$Body .= $noisy;
$Body .= "</span><br>";
$Body .= "Collation / Stapling Problems:  <span class='hilite'>";
$Body .= $collationstampling;
$Body .= "</span><br>";
$Body .= "Booklet Folding Problems:  <span class='hilite'>";
$Body .= $bookletfolding;
$Body .= "</span><br>";
$Body .= "Printing Issues:  <span class='hilite'>";
$Body .= $printing;
$Body .= "</span><br>";
$Body .= "Printer Driver Issues:  <span class='hilite'>";
$Body .= $printerdriver;
$Body .= "</span><br>";
$Body .= "Brief description:  <span class='hilite'>";
$Body .= $description;
$Body .= "</span><br>";
$Body .= "Equipment Serial Number:  <span class='hilite'>";
$Body .= $serial;
$Body .= "</span><br>";
$Body .= "Company Name:  <span class='hilite'>";
$Body .= $company;
$Body .= "</span><br>";
$Body .= "Contact Name:  <span class='hilite'>";
$Body .= $contact;
$Body .= "</span><br>";
$Body .= "E-mail:  <span class='hilite'>";
$Body .= $email;
$Body .= "</span><br>";
$Body .= "Telephone, incl. extn:  <span class='hilite'>";
$Body .= $tel;
$Body .= "</span><br>";
$Body .= "</body>";
$Body .= "</html>";
 
$EmailTo = "manzooriram@yahoo.co.uk";
 
 
 
 
$headers  = "From: contact@topaz.uk.com\r\n";
$headers .= "Content-type: text/html\r\n";
$subject = "Online Service Request";
$mailbody = wordwrap($Body, 72); 
$body=$mailbody;
 
mail($EmailTo,$subject,$body,$headers);
 
if ($ref99=="http://www.topaz.uk.com/v2/onlinetest.htm") {
	print "<meta http-equiv=\"refresh\" content=\"0;URL=http://www.topaz.uk.com/v2/online_thanks.htm\">";
} else {
	print "<meta http-equiv=\"refresh\" content=\"0;URL=http://www.topaz.uk.com/v2/online_thanks.htm\">";
}
?>
                                  
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:

Select allOpen in new window

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-11-03 at 09:24:53ID24867950
Topics

Scripting Languages

,

Web Services

,

WebApplications

Participating Experts
1
Points
300
Comments
9

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Stylesheets
    I am using LINK tag to my stylesheets. All works great in IE 4 but not in Navigator 4. My code is <LINK REL=STYLESHEET TYPE="text/css" HREF="style/mkt.css"> and my stylesheet is BODY {font: 12 pt Arial} H1 {font: 22 pt Times; color: navy; text-a...
  2. External stylesheets
    Hi I am trying to learn CSS. My external style sheet reads like this <style type="text/css"> <!-- a { text-decoration: none} a:hover { text-decoration: underline overline} dd { color: #0000CC} --> </style> What do i have to add to this so t...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: jake_0011Posted on 2009-11-03 at 09:59:22ID: 25731635

In the ShowReg function set

document.form[0].choice.value= op;

 

by: safeerhshahPosted on 2009-11-03 at 16:10:32ID: 25735288

thanks jake but it didn't work. any other suggestions?

 

by: jake_0011Posted on 2009-11-03 at 18:27:50ID: 25735889

I took a closer look at your code and found a solution.

First and foremost the opening "form" tag should be above the drop-down to be included in the form (updated code is below).  Also there is an extraneous </form> tag.

Finally, I'm assuming you want to return the text-description of the drop-down and not the value, so you can create a hidden input named choiceTxt and populate it in the ShowReg function.

document.forms[0].choiceTxt.value = document.forms[0].choice[op].text;

In your php action the variable will be $_POST['choiceTxt']

            
            <form id="verticalForm" action="http://www.topaz.uk.com/process1_topaz.php" method="post"> 
                        <label for="choice">
                              <p style="font:normal 11px Arial, sans serif;"><b>What type of Service do you wish to request?</b>
                              <br>(Select from the drop-down list)
                              <br>
                              <select id="choice" name="choice" onChange="ShowReg(this.selectedIndex)">
                                     <option value='0'>Select Type of Service
                                    <option value='1'>Consumable Delivery
                                    <option value='2'>Engineer Visit - Routine Service / PM
                                    <option value='3'>Engineer Visit - Machine Problem
                              </select>
                              <br>
            
               <input type="hidden" name="choiceTxt" value=""/>  
                              
                  <fieldset>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:

Select allOpen in new window

 

by: safeerhshahPosted on 2009-11-04 at 12:09:44ID: 25743391

thankyou jake

 

by: safeerhshahPosted on 2009-11-04 at 12:14:47ID: 25743440

thankyou jake it is finally working now. but i have another problem when i enter the details and hit the send button it goes to thankyou message pageand i receive the details via email. but when i use the back button from thankyou page it goes back to the form and doesnot refresh the page even if i try f5 button it doesnot refresh the page, and if i select different service type from last time it emails me the old and new details as 1 form info. do i need to refresh the html file or php file. pls help
many thanks

 

by: jake_0011Posted on 2009-11-04 at 13:01:19ID: 25743877

So you want to start with a new blank form after the previous form was submitted and the user clicks "Back" on their browser?

 

by: safeerhshahPosted on 2009-11-04 at 19:33:43ID: 25746541

yes jake i want to start with the blank form even if the user hits the back button the form should reload

 

by: jake_0011Posted on 2009-11-05 at 02:33:31ID: 25748135

This issue really has more to do with the browser, so you will have to manually control the value for each of the html inputs by resetting them back to defaults each time the form is submitted.  

Adding onsubmit to  your <form id="verticalForm" ..... onsubmit="document.forms[0].reset()" >

 

by: safeerhshahPosted on 2009-11-05 at 07:11:26ID: 25750255

Jake i tried this doesnot work, but it would reset the forms on submission and i receive blank email. I have found another solution to reset the form always when the page loads. Something like below
<body onload="document.forms['FormName'].reset()">   and  this works.
thankyou very much for your support jake.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...