thanks jake but it didn't work. any other suggestions?
Main Topics
Browse All Topicsi 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/xhtm
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatibl
<title>Topaz</title>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Langua
<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&&p
d=parent.frames[n.substrin
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;
for(i=0;!x&&d.layers&&i<d.
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,
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')!=
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">R
<li><a href="http://download6.kon
<li><a href="http://kb.topaz.uk.c
</ul>
</div>
<div id="print"><a href="javascript:window.pr
<div id="g-topaz-logo"><a href="../home.htm" title="Topaz home page"><img src="images/g_topaz_logo.g
<div id="g-header-logos"><img src="images/g_header_logos
<div id="g-header-copier"><img src="images/g_header_copie
<div id="g-header-fill"><img src="images/g_header_fill.
<div id="g-header-menu"><img src="images/g_header_menu.
<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:norma
<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.sel
<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.u
<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
<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
<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
<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
<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
<select id="wastetonerbottle" name="wastetonerbottle" style="width:60px;">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
</select>
&n
<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 />
&n
<br>
<br />
<br>
<br />
<p align="center"> Meter Reading<span style="font:bold 14px Trebuchet MS, sans-serif;color:red;">
<p align="center"><label> <span>(K) Black</span>
<input name="blackreading" style="float;width:80px; type="text" id="blackreading" onblur="MM_validateForm('b
<span class="style11"> &nbs
<input name="colourreading" style="float;width:80px; type="text" id="colourreading" onblur="MM_validateForm('c
</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"
</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;"> *</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;">*</t
</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;"> *</td>
</tr>
<tr>
<td><b>E-mail:</b></td>
<td><input name="email" type="text" id="email" onblur="MM_validateForm('e
<td span style="font:bold 14px Arial, sans serif;color:red;">*</t
</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;">*</t
</tr>
</table>
<label><center><input name="submit" type="submit" class="submit" onclick="MM_validateForm('
</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" --> ©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<
<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
Created by: Jay Rumsey | http://www.nova.edu/~rumse
function ShowReg(op) {
document.getElementById('C
document.getElementById('E
document.getElementById('E
if (op == 1) {
document.getElementById('C
}
if (op == 2) {
document.getElementById('E
}
if (op == 3) {
document.getElementById('E
}
}
// JavaScript Document
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
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.
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.
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.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
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.
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].choiceTx
In your php action the variable will be $_POST['choiceTxt']
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
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['Fo
thankyou very much for your support jake.
Business Accounts
Answer for Membership
by: jake_0011Posted on 2009-11-03 at 09:59:22ID: 25731635
In the ShowReg function set
lue= op;
document.form[0].choice.va