foreløbig ser formularen således ud:
<HTML><HEAD><TITLE>Tilmelding</TITLE>
<META content=text/html;CHARSET=iso-8859-1 http-equiv=Content-Type>
<meta name="Microsoft Border" content="none, default">
</HEAD>
<BODY bgColor=#ffffff>
<FORM name="tilmelding" action="mailto:henrik.jensen@it-jylland.dk"
method="post" onsubmit="validering();return false";
enctype="text/plain">
<CENTER>
<table border=0 cellpadding=3 width="528" height="718">
<script type="text/javascript">
<!-- Start
function validering()
{
error = 0;
if((document.forms[0].foedselsdata.value=='') && (error==0))
{
alert('Du skal udfylde fødselsdata!');
document.forms[0].foedselsdata.focus();
error = 1;
}
if((document.forms[0].Fornavn.value=='') && (error==0))
{
alert('Du skal skrive dit Fornavn!');
document.forms[0].Fornavn.focus();
error = 1;
}
if((document.forms[0].Efternavn.value=='') && (error==0))
{
alert('Du skal skrive dit Efternavn!');
document.forms[0].Efternavn.focus();
error = 1;
}
if((document.forms[0].Tlfnr.value=='') && (error==0))
{
alert('Du skal indtaste dit Tlfnr!');
document.forms[0].Tlfnr.focus();
error = 1;
}
if(error == 0)
document.forms[0].submit();
}
// Slut -->
</script>
<tbody>
<tr>
<td width="897" height="44" style="border-center-style: solid;
border-style: solid" align="right" colspan="4">
<p align="center"><b><font color="#0000FF"
size="6">Tilmelding til
Hærvejsmarchen</font></b>
</td>
</tr>
<tr>
<td width="897" height="1" style="border-center-style: solid;
border-style: solid" align="right" colspan="4">
<p align="center"><font color="#FF0000"><font
size="5"><b>SKAL UDFYLDES!!! <font color="#FF0000"> <p
align="center"><font size="5"><b>Fødselsdata (dd/mm/aa)</b>
<input type="text" name="foedselsdata" size=29></font>*</p>
<p>
</td>
</tr>
<tr>
<td width="123" height="36" style="border-center-style: solid;
border-left-style: solid; border-top-style: solid" align="right">
<div align="center">
<p align="left"><font color="#000000"size="2">
Fornavn:</font></div>
</td>
<td width="161" height="36" style="border-top-style: solid">
<input type="text" name="Fornavn" size=20>
</td>
<td width="162" height="36" style="border-top-style: solid">
<font color="#000000" size="2">Efternavn:</font>
</td>
<CENTER>
<td width="394" height="36" style="border-right-style: solid;
border-top-style: solid">
<font color="#000000" face="Times New Roman, Times, serif"
size="2"><input type="text" name="Efternavn" size=20>
</font>
</CENTER>
<tr>
<td width="121" height="33" style="border-center-style: solid;
border-left-style: solid" align="right">
<div align="center">
<p align="left"><font color="#000000" face="Times New Roman,
Times, serif" size="2">Vej og nr:</font></div>
</td>
<td width="161" height="33">
<input type="text" name="Vej og nr" size=20>
</font></font></td>
<td width="121" height="36" style="border-center-style: solid "
align="right">
<div align="center">
<p align="left"><font color="#000000" face="Times New Roman,
Times, serif" size="2">Postnummer,
by:</font></div>
</td>
<td width="161" height="36" style="border-right-style: solid">
<p align="left"> <font color="#000000">
<input type="text" name="by" size=20>
</font> </p>
</td>
</tr>
<tr>
<td width="162" height="20" style="border-left-style: solid">
<p align="left"> <font color="#ffffff">o
</font></p>
</td>
<td height="36" width="3437" align="center">
</td>
<td width="162" height="35" style="border-left-style: solid;
border-top-style: solid">
<p align="left"> <font color="#000000">Ønsket distance (KM)
</font></p>
</td>
<td width="394" height="36" style="border-right-style: solid;
border-top-style: solid">
<div align="center">
<p align="left"><font color="#000000">
<input type="text" name="distance" size=20>
</font> </div>
</td>
</tr>
<td width="121" height="33" style="border-center-style: solid;
border-left-style: solid" align="right">
<div align="center">
<p align="left"><font color="#000000">
Emailadresse:</font></div>
</td>
<td width="161" height="33">
<p align="left"> <font color="#000000">
<input type="text" name="Email" size=20>
</font> </p>
</td>
<td width="162" height="35"style="border-left-style: solid">
<p align="left"><font color="#000000" size="2" face="Times New
Roman, Times, serif">Gennemført antal gange 20KM
</font> </p>
</td>
<td width="111" height="35" style="border-right-style: solid;">
<p align="left">
<input type="text" name="gennemfoert 20KM" size=20>
<tr>
<td width="123" height="35" style="border-center-style: solid;
border-left-style: solid; border-bottom-style: solid" align="right">
<p align="left"><font color="#000000">Telefonnr:</font>
</td>
<td width="161" height="35" style="border-center-style: solid;
border-bottom-style: solid">
<div align="center">
<p align="left"><font color="#000000">
<input type="text" name="Tlfnr" size=20>
</font> </div>
</td>
<td width="162" height="35" style="border-bottom-style: solid;
border-left-style: solid">
<p align="left"><font color="#000000" size="2" face="Times New
Roman, Times, serif">Gennemført antal gange HVM
før</font> </p>
</td>
<td width="111" height="35" style="border-right-style: solid;
border-bottom-style: solid">
<p align="left">
<input type="text" name="gennemfoert hvm" size=20>
<tr>
<td width="115" height="388" style="border-style: solid"
valign="top" align="center">
<font color="#000000" face="Times New Roman, Times,
serif"><b>Indkvartering</b></font>
<p><font color="#000000"><font color="#000000" size="2"
face="Times New Roman, Times, serif">Indkvartering
Fredag</font>
</p>
<p align="center"> <font face="Times New Roman, Times, serif"
size="2">
<input type=checkbox name="Indkvartering Fredag"
value="X"></font>
</p>
<p> <font face="Times New Roman, Times, serif" size="2">
<br><BR>
Indkvartering Lørdag</font></p>
<p align="center"> <font face="Times New Roman, Times, serif"
size="2">
<input type=checkbox name="Indkvartering Lørdag"
value="X"></font></p>
<p> </p>
<p> <font face="Times New Roman, Times, serif" size="2">
Indkvartering Søndag
</font></p>
<p align="center"> <font face="Times New Roman, Times, serif"
size="2">
<input type=checkbox name="Indkvartering Søndag" value="X">
</font></p>
</font>
<p>
<td valign=top align="center" height="388" width="161"
style="border-style: solid">
<font color="#000000" face="Times New Roman, Times, serif"><b>Vestre
Skole</b></font>
<p>
<font face="Times New Roman, Times, serif" size="2"><input
type=checkbox name="Vestre Skole" value="X">
</font>
<CENTER>
<td valign=top align="center" height="388" width="162"
style="border-style: solid" nowrap>
<font color="#000000" face="Times New Roman, Times,
serif"><b>Nordre Skole</b></font>
<p>
<font face="Times New Roman, Times, serif" size="2"><input
type=checkbox name="Nordre Skole" value="X">
</font>
</center>
<td valign=top align="center" height="388" width="152"
style="border-style: solid" nowrap>
<p align="center"><b>
Forplejning:</b>
</p>
<p align="left"><font face="Times New Roman, Times, serif"
size="2"><input type=checkbox name="AF" value="X">Aftensmad
Fredag
</font>
</p>
<p align="left"><font face="Times New Roman, Times, serif"
size="2"><input type=checkbox name="ML" value="X">Morgenmad
Lørdag
</font>
</p>
<p align="left"><font face="Times New Roman, Times, serif"
size="2"><input type=checkbox name="AL" value="X">Aftensmad
Lørdag
</font>
</p>
<p align="left"><font face="Times New Roman, Times, serif"
size="2"><input type=checkbox name="MS" value="X">Morgenmad
Søndag
</font>
</p>
<p align="left"><font face="Times New Roman, Times, serif"
size="2"><input type=checkbox name="AS" value="X">Aftensmad
Søndag
</font>
<p align="left"><font face="Times New Roman, Times, serif"
size="2"><input type=checkbox name="MM" value="X">Morgenmad
Mandag
</font>
<CENTER>
<p>
</tr>
<tr>
<td width="115" height="27" valign="top" align="center">
<td width="323" height="27" valign="top" align="center"
colspan="2">
<font color="#000000" face="Times New Roman, Times, serif"
size="2">
<input type=submit value=Send>
<input type=reset value=nulstil>
</font>
<td width="111" height="27" valign="top" align="center">
</tr>
</table>
</CENTER>
</BODY>
det jeg mangler nu, er det script der kan sætte en pris på hvert valgt
felt:
tilmelding koster 105kr, indkvartering koster 30kr, aftensmad koster
50kr og morgenmad koster 35kr etc.
når formularen sendes uden indkvatering beregnes der tilmeldingsgebyret
på 105 kr og hvis der vælges i checkboksene skal der lægges til denne
pris..
jeg håber der er nogen der kan hjælpe lidt.
mvh Henrik
--
Vil du lære at kode HTML, XHTML, CSS, SSI eller ASP?
- Pædagogiske tutorials på dansk
- Kom godt i gang med koderne
KLIK HER! =>
http://www.html.dk/tutorials