Hjælp til online bestilling
Hej folkens.har kigget på forumet i et stykke tid, og jeg synes det er flot som folk hjælper hinanden, jeg tænkte på om nogen kunne hjælpe mig med denne script, jeg skal have det sendt til mailen hvad skal jeg gøre. Den skal sende bestillingen til mailen.
Mange tak på forhånd.
<html>
<head>
<title>S P E E D W I C H - online bestilling</title>
<STYLE type="text/css">
<!--
BODY { color: #000000; font: small Arial, Helvetica, sans-serif}
p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height:17px}
td { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;}
-->
</STYLE>
</head>
<body bgcolor="#FFFFFF" background="baggrund.jpg" onLoad="L()">
<script language="javascript1.2">
priser = new Array();
priser[0] = 0;
priser[1] = 39;
priser[2] = 39;
priser[3] = 39;
priser[4] = 39;
priser[5] = 39;
priser[6] = 42;
priser[7] = 42;
priser[8] = 42;
priser[9] = 39;
priser[10] = 59;
priser[11] = 59;
priser[12] = 59;
priser[13] = 59;
priser[14] = 59;
function updtotal(){
samletantal = 0;
samletpris = 0;
for (var i=1; i<priser.length; i++) {
eval("samletantal += (document.f1.antal"+i+".value-0);");
eval("samletpris += (document.f1.total"+i+".value-0);");
}
document.f1.samletantal.value = samletantal;
document.f1.total.value = samletpris;
}
function updatefield(id){
eval("antal = document.f1.antal"+id+".value;");
pris = priser[id];
p = antal*pris;
eval("document.f1.total"+id+".value = p;");
updtotal();
}
function L(){
for (var i=1; i<priser.length; i++) {
eval("document.f1.antal"+i+".value = '0';");
eval("document.f1.total"+i+".value = '0';");
}
updtotal();
}
</script>
<FORM name=f1 method=post action="http://www.tiscali.dk/cgi-bin/formmail/FormMail.pl">
<input type=hidden name="recipient" value="info@tastybagels.dk">
<input name=redirect type=hidden value="http://www.speedwich.dk/tak.htm">
<INPUT name=subject type=hidden value="Speedwich bestilling">
<table width="700" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><b>Online bestillingsliste</b></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><font face="Verdana" size="1"><font size="-2" face="Verdana, Arial, Helvetica, sans-serif">Firmanavn</font><br>
<input type="text" name="Firmanavn" style="width: 185px; font-family: Verdana, Arial, Helvetica">
<br>
Leveringsadresse<br>
<input type="text" name="Leveringsadresse" style="width: 185px; font-family: Verdana, Arial, Helvetica">
<br>
Postnr. & By<br>
<input type="text" name="Postnr. & By" style="width: 185px; font-family: Verdana, Arial, Helvetica">
<br>
Telefon<br>
<input type="text" name="Telefon" style="width: 185px; font-family: Verdana, Arial, Helvetica">
<br>
Kontaktperson<br>
<input type="text" name="Kontaktperson" style="width: 185px; font-family: Verdana, Arial, Helvetica">
<br>
Leveringstidspunkt:<br>
<select name=Idag size="1" style="width: 185px; font-family: Verdana, Arial, Helvetica">
<option selected>I dag kl...</option>
<option>10-11</option>
<option>11-12</option>
<option>12-13</option>
<option>13-14</option>
<option>14-15</option>
<option>15-16</option>
</select>
<br>
<br>
<b>Ved forudbestilling benyttes<br>
disse 2 bokse:</b><br>
<select name=Ugedag size="1" style="width: 185px; font-family: Verdana, Arial, Helvetica">
<option selected>Vælg ugedag...</option>
<option>Mandag</option>
<option>Tirsdag</option>
<option>Onsdag</option>
<option>Torsdag</option>
<option>Fredag</option>
</select>
<br>
<br>
<select name=Tidspunkt size="1" style="width: 185px; font-family: Verdana, Arial, Helvetica">
<option selected>Tidspunkt...</option>
<option>10-11</option>
<option>11-12</option>
<option>12-13</option>
<option>13-14</option>
<option>14-15</option>
<option>15-16</option>
</select>
<br>
</font></td>
<td width="100"><img src="trans.gif" width="100" height="1"></td>
<td valign="top"><b>La France<br>
Tordenskjoldsgade 11<br>
1055 København K<br>
Tlf.: 33 11 33 52<br>
<br>
Cvr. nr: 25656083<br>
<br>
Fakturanummer:</b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>Sandwich:</b></td>
<td width="40"><img src="trans.gif" width="40" height="1"></td>
<td><b>Pris:</b></td>
<td width="40"><img src="trans.gif" width="40" height="1"></td>
<td><b>Antal:</b></td>
<td width="40"><img src="trans.gif" width="40" height="1"></td>
<td><b>Total:</b></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20">
<div align="right">1.</div>
</td>
<td> <b>Kalkun</b> <font size="-2">m. karrydressing, bacon
og tomat</font></td>
</tr>
</table>
</td>
<td> </td>
<td>39,00 kr.</td>
<td> </td>
<td>
<input type="text" name="antal1" maxlength="2" size="2" onKeyDown="updatefield(1)" onKeyUp="updatefield(1)" onChange="updatefield(1)">
</td>
<td> </td>
<td>
<input type="text" name="total1" size="4">
kr. </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20">
<div align="right">2.</div>
</td>
<td> <b>Kylling, marineret </b><font size="-2">m. karrydressing,
bacon og tomat</font></td>
</tr>
</table>
</td>
<td> </td>
<td>39,00 kr.</td>
<td> </td>
<td>
<input type="text" name="antal2" maxlength="2" size="2" onKeyDown="updatefield(2)" onKeyUp="updatefield(2)" onChange="updatefield(2)">
</td>
<td> </td>
<td>
<input type="text" name="total2" size="4">
kr.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20">
<div align="right">3.</div>
</td>
<td> <b>Skinke og ost</b> <font size="-2">m. tomat og rucola</font></td>
</tr>
</table>
</td>
<td> </td>
<td>39,00 kr.</td>
<td> </td>
<td>
<input type="text" name="antal3" maxlength="2" size="2" onKeyDown="updatefield(3)" onKeyUp="updatefield(3)" onChange="updatefield(3)">
</td>
<td> </td>
<td>
<input type="text" name="total3" size="4">
kr.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20">
<div align="right">4.</div>
</td>
<td> <b>Æg og rejer</b> <font size="-2">m. mayonnaise
og tomat</font></td>
</tr>
</table>
</td>
<td> </td>
<td>39,00 kr.</td>
<td> </td>
<td>
<input type="text" name="antal4" maxlength="2" size="2" onKeyDown="updatefield(4)" onKeyUp="updatefield(4)" onChange="updatefield(4)">
</td>
<td> </td>
<td>
<input type="text" name="total4" size="4">
kr.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20">
<div align="right">5.</div>
</td>
<td> <b>Frikadelle</b> <font size="-2">m. sød chilidressing
og soltørrede tomater</font></td>
</tr>
</table>
</td>
<td> </td>
<td>39,00 kr.</td>
<td> </td>
<td>
<input type="text" name="antal5" maxlength="2" size="2" onKeyDown="updatefield(5)" onKeyUp="updatefield(5)" onChange="updatefield(5)">
</td>
<td> </td>
<td>
<input type="text" name="total5" size="4">
kr.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20">
<div align="right">6.</div>
</td>
<td> <b>Hønsesalat</b> <font size="-2">m. asparges,
bacon og tomat</font></td>
</tr>
</table>
</td>
<td> </td>
<td>42,00 kr.</td>
<td> </td>
<td>
<input type="text" name="antal6" maxlength="2" size="2" onKeyDown="updatefield(6)" onKeyUp="updatefield(6)" onChange="updatefield(6)">
</td>
<td> </td>
<td>
<input type="text" name="total6" size="4">
kr.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20">
<div align="right">7.</div>
</td>
<td> <b>Laks</b> <font size="-2">m. asparges, røræg,
gulerod og rå løg</font></td>
</tr>
</table>
</td>
<td> </td>
<td>42,00 kr.</td>
<td> </td>
<td>
<input type="text" name="antal7" maxlength="2" size="2" onKeyDown="updatefield(7)" onKeyUp="updatefield(7)" onChange="updatefield(7)">
</td>
<td> </td>
<td>
<input type="text" name="total7" size="4">
kr.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20">
<div align="right">8.</div>
</td>
<td> <b>Roastbeef</b> <font size="-2">m. remolade, ristede
løg og surt</font></td>
</tr>
</table>
</td>
<td> </td>
<td>42,00 kr.</td>
<td> </td>
<td>
<input type="text" name="antal8" maxlength="2" size="2" onKeyDown="updatefield(8)" onKeyUp="updatefield(8)" onChange="updatefield(8)">
</td>
<td> </td>
<td>
<input type="text" name="total8" size="4">
kr.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20">
<div align="right">9.</div>
</td>
<td> <b>Grøn salat *</b></td>
</tr>
</table>
</td>
<td> </td>
<td>39,00 kr.</td>
<td> </td>
<td>
<input type="text" name="antal9" maxlength="2" size="2" onKeyDown="updatefield(9)" onKeyUp="updatefield(9)" onChange="updatefield(9)">
</td>
<td> </td>
<td>
<input type="text" name="total9" size="4">
kr.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20">
<div align="right">10.</div>
</td>
<td><b> Grøn salat * </b>m. laks</td>
</tr>
</table>
</td>
<td> </td>
<td>59,00 kr.</td>
<td> </td>
<td>
<input type="text" name="antal10" maxlength="2" size="2" onKeyDown="updatefield(10)" onKeyUp="updatefield(10)" onChange="updatefield(10)">
</td>
<td> </td>
<td>
<input type="text" name="total10" size="4">
kr.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20">
<div align="right">11.</div>
</td>
<td> <b>Grøn salat * </b>m. roastbeef</td>
</tr>
</table>
</td>
<td> </td>
<td>59,00 kr.</td>
<td> </td>
<td>
<input type="text" name="antal11" maxlength="2" size="2" onKeyDown="updatefield(11)" onKeyUp="updatefield(11)" onChange="updatefield(11)">
</td>
<td> </td>
<td>
<input type="text" name="total11" size="4">
kr.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20">
<div align="right">12.</div>
</td>
<td> <b>Grøn salat * </b>m. kalkun</td>
</tr>
</table>
</td>
<td> </td>
<td>59,00 kr.</td>
<td> </td>
<td>
<input type="text" name="antal12" maxlength="2" size="2" onKeyDown="updatefield(12)" onKeyUp="updatefield(12)" onChange="updatefield(12)">
</td>
<td> </td>
<td>
<input type="text" name="total12" size="4">
kr.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20">
<div align="right">13.</div>
</td>
<td> <b>Grøn salat * </b>m. kylling</td>
</tr>
</table>
</td>
<td> </td>
<td>59,00 kr.</td>
<td> </td>
<td>
<input type="text" name="antal13" maxlength="2" size="2" onKeyDown="updatefield(13)" onKeyUp="updatefield(13)" onChange="updatefield(13)">
</td>
<td> </td>
<td>
<input type="text" name="total13" size="4">
kr.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20">
<div align="right">14.</div>
</td>
<td> <b>Grøn salat * </b>m. frikadelle og kartoffelsalat</td>
</tr>
</table>
</td>
<td> </td>
<td>59,00 kr.</td>
<td> </td>
<td>
<input type="text" name="antal14" maxlength="2" size="2" onKeyDown="updatefield(14)" onKeyUp="updatefield(14)" onChange="updatefield(14)">
</td>
<td> </td>
<td>
<input type="text" name="total14" size="4">
kr.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><font size="-2">*) Leveres m. brød og dressing</font></td>
<td> </td>
<td> </td>
<td><b>Antal</b></td>
<td>
<input type="text" name="samletantal" maxlength="2" size="2">
</td>
<td><b>Total</b></td>
<td>
<input type="text" name="total" size="4">
<b>kr.</b> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><font face="Verdana" size="1">
<input type="submit" name="Submit" value="Indsend bestilling" style="width: 185px"">
<input type="reset" name="Submit2" value="Slet alt">
</font></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</FORM>
</body>
</html>