[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.1

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

Asked by safeerhshah in Scripting Languages, Web Services, WebApplications

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




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:
<?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\">";
}
?>
[+][-]11/03/09 06:27 PM, ID: 25735889Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Scripting Languages, Web Services, WebApplications
Sign Up Now!
Solution Provided By: jake_0011
Participating Experts: 1
Solution Grade: A
 
[+][-]11/03/09 09:59 AM, ID: 25731635Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/03/09 04:10 PM, ID: 25735288Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/04/09 12:09 PM, ID: 25743391Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/04/09 12:14 PM, ID: 25743440Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/04/09 01:01 PM, ID: 25743877Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/04/09 07:33 PM, ID: 25746541Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/05/09 02:33 AM, ID: 25748135Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/09 07:11 AM, ID: 25750255Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625