Something weird is happening with the variables. I've lined them all up neatly to linefeed into an e-mail. However the code stops at "Home B". Any idea why this is happening. I've included the whole page below:
<html>
<head>
<title>
Parts Request Form
</title>
<H3>Parts Form</H3>
</head>
<body alink ="blue" vlink ="blue">
<table bgcolor ="lightblue" cellpadding ="0" cellspacing ="0" bordercolor ="white"><TR><TD>
<form name ="parts">
Agent<BR>
<input type ="text" size =15 name ="agent"></input><BR>
Delivery Date<BR>
<input type ="text" size =15 name ="deldate"></input><BR>
Delivery Number<BR>
<input type ="text" size =15 name ="delno"></input><BR>
Customer Surname<BR>
<input type ="text" size =15 name ="cust"></input><BR>
Who Complained<BR>
<input type ="text" size =15 name ="who"></input><BR>
Confirm Customer's Telephone Number<BR>
<input type ="text" size =15 name ="conf"></input><BR>Manufacturer (Other)<BR>
<select name ="manu">
<option value ="">--
<option value ="Amana">Amana
<option value ="Ariston">Ariston
<option value ="Asko">Asko
<option value ="Bauknecht">Bauknecht
<option value ="Beko">Beko
<option value ="Bosch">Bosch
<option value ="Candy">Candy
<option value ="Cannon">Cannon
<option value ="Creda">Creda
<option value ="Crusader">Crusader
<option value ="Dyson">Dyson
<option value ="Eng Elec">Eng Elec
<option value ="Hoover">Hoover
<option value ="Hotpoint">Hotpoint
<option value ="Indesit">Indesit
<option value ="Kelvinator">Kelvinator
<option value ="LG">LG
<option value ="Miele">Miele
<option value ="Neff">Neff
<option value ="Servis">Servis
<option value ="Siemens">Siemens
<option value ="Whirlpool">Whirlpool</option>
</select><BR>
Other Manufacturers<BR>
<select name ="comm">
<option value ="">--
<option value ="Admiral">Admiral
<option value ="AEG">AEG
<option value ="Belling">Belling
<option value ="Blomberg">Blomberg
<option value ="Brandt">Brandt
<option value ="Daewoo">Daewoo
<option value ="Delonghi">Delonghi
<option value ="Flavel">Flavel
<option value ="Gorenje">Gorenje
<option value ="Kenwood">Kenwood
<option value ="LEC">LEC
<option value ="Leibherr">Leibherr
<option value ="Leisure">Leisure
<option value ="Moffat">Moffat
<option value ="New World">New World
<option value ="Parkinson Cowan">Parkinson Cowan
<option value ="Proline">Proline
<option value ="Rangemaster">Rangemaster
<option value ="Samsung">Samsung
<option value ="Scandinova">Scandinova
<option value ="Sharp">Sharp
<option value ="Stoves">Stoves
<option value ="Teba">Teba
<option value ="Thomson">Thomson
<option value ="Tricity Bendix">Tricity Bendix
<option value ="Zanussi">Zanussi</option></select><BR>
Serial Number<BR>
<input type ="text" size ="20" name ="serial"><BR>
Notes<BR>
<textarea rows =20 cols = 50 name ="notes"></textarea>
<input type ="button" name ="composer" value = "Compose" onclick ="sendthis()">
<INPUT TYPE="RESET" VALUE="Clear">
</form>
</TR></TD></TABLE>
<script language ="Javascript">
function sendthis(){
var agentvar = document.parts.agent.value
var deldvar = document.parts.deldate.value
var delno1 = document.parts.delno.value
var custsur = document.parts.cust.value
var whocomp = document.parts.who.value
var confcust = document.parts.conf.value
var manuname = document.parts.manu.value
var commanu = document.parts.comm.value
var serial1 = document.parts.serial.value
var notes1 = document.parts.notes.value
location.href="mailto:
[email protected]?subject=What ever&body=Agent name: "+ agentvar + "%0D%0A" + "Delivery Date: "
+ deldvar + "%0D%0A" + "Delivery Number: " + delno1 + "%0D%0A" + "Customer Surname: " + custsur + "%0D%0A" + "Who
Complained: " + whocomp + "%0D%0A" + "Customer Tel No: " + confcust + "%0D%0A" + "Manufacturer Name:" + manuname
+ "%0D%0A" + "Home Brand: " + commanu + "%0D%0A" + "Serial Number: " + serial1 + "%0D%0A"+ "Notes: " + notes1;
}
</script>
</body>
</html>
Obviously you'll need to re-wrap the variables above. Its driving me up the wall, because I can't see the problem!!
Thanks in anticipation
interrupt