Hej,
Jeg skal bruge hjælp..!
I denne mailform, i feltet "Til", der skal man kunne skrive en tilfældig email adresse, og så sender formen mailen til den adresse.
Formen er:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>KvikBesked</title>
<STYLE TYPE="text/css">
<!--
body {font-family: Tahoma; color: #000000; font-size: 10px; }
a:link {text-decoration:none; font-weight: bold; color: #000000; cursor:; }
a:visited {text-decoration:none; font-weight: bold; color: #000000; cursor:;}
a:active {text-decoration:none; font-weight: bold; color: #000000; cursor:;}
a:hover {text-decoration: none; font-weight: bold; color: #e9e9e9; cursor:;}
input, textarea, option, select{background-color:#e9e9e9;
border:solid 1px black;color:#black;font-family:tahoma;font-size: 10px;}
BODY {
scrollbar-face-color: #F5F5EC;
scrollbar-shadow-color: #505868;
scrollbar-highlight-color: #505868;
scrollbar-3dlight-color: #505868;
scrollbar-darkshadow-color: #505868;
scrollbar-track-color: #F5F5EC;
scrollbar-arrow-color: #505868;
}
-->
</STYLE>
<link rel="stylesheet" href="/styleSheets/smilies.css" type="text/css">
<script language="JavaScript" src="/includes/JSpopup.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
function udfyldModtager(){
var n=document.InputForm.adressebog.selectedIndex;
document.InputForm.modtager.value=document.InputForm.adressebog[n].value;
document.InputForm.adressebog.options[0].selected=true;
document.InputForm.emne.focus();
}
function CheckInput(){
if (document.InputForm.modtager.value==""){
alert('Indtast venligst en modtager (e-mail adressen)');
document.InputForm.modtager.focus();
return false;
}
if (document.InputForm.beskrivelse.value==""){
alert('Indtast venligst en besked ');
document.InputForm.beskrivelse.focus();
return false;
}
}
function tilpasVindue(){
}
</script>
</head>
<body class="body2" style="margin: 0px;" onLoad="tilpasVindue(); document.InputForm.modtager.focus();" bgcolor="#ADADAD">
<!-- ¯verste del af siden -->
<table border="0" cellspacing="0" cellpadding="10" width="100%" height="325">
<tr>
<td valign="top">
<!-- Indhold af ¿verste del af siden -->
<form action="http://www.freebieweb.dk/freebieweb/email-write.asp?action=send" method="post" name="InputForm" onSubmit="return CheckInput();">
<table border="0" cellspacing="0" cellpadding="1" style="margin-top: 5px" width="467">
<tr>
<td nowrap width="51"><b><font size="2">Til:</font></b></td>
<td nowrap width="235">
<!-- Modtager og adressebog -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="40%"><font size="2"><input type="text" name="modtager" size="19" maxlength="50" value="" style="width: 100%" tabindex="1"></font></td>
<td width="60%">
<font size="2">
<select name="adressebog" size="1" style="width: 100%" tabindex="7" onChange="udfyldModtager();">
<option value="">Adressebog</option>
<option value=""></option><option value=""></option><option value=""></option><option value=""></option>
</select>
</font>
</td>
</tr>
</table>
<!-- /Modtager og adressebog -->
</td>
<td nowrap width="169"></td>
</tr>
<tr>
<td nowrap width="51"><b><font size="2">Emne:</font></b></td>
<td nowrap width="235"><font size="2"><input type="text" name="emne" size="43" maxlength="50" style="width: 100%" value="" tabindex="2"></font></td>
<td nowrap width="169"></td>
</tr>
<tr>
<td nowrap width="51" valign="top"><b><font size="2">Besked:</font></b></td>
<td nowrap width="235"><font size="2"><textarea name="beskrivelse" rows="6" cols="40" style="width: 100%; height: 130px;" tabindex="3" onkeyup="if(this.value.length>4000){this.value=this.value.slice(0,4000);alert('Du kan ikke skrive mere i dette felt :-)');};"></textarea></font></td>
<td nowrap style="padding-left: 5px" width="165"><script language="JavaScript" type="text/javascript">
<!--
function insertSmiley(smiley){
document.InputForm.beskrivelse.value=document.InputForm.beskrivelse.value + ' ' + smiley + ' ';
document.InputForm.beskrivelse.focus();
}
function visSmilies(favoritter){
window.open('/smilies/ps/?favoritter='+ favoritter,'Smilies','height=450,width=550,top=50,left=50,scrollbars=1,status=0,resizable');
}
-->
</script>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap>
<!-- Smilies -->
<table border="0" cellspacing="1" cellpadding="0">
<tr>
<td nowrap><font size="2">

</font></td>
<td rowspan="7" width="2"></td>
<td nowrap><font size="2"><img title="Smiler" src="http://www.arto.dk/smilies/icon_smile.gif" height="15" width="15" align="center" border="0" onClick="insertSmiley(':-)');"></font></td>
<td rowspan="7" width="7"></td>
<td nowrap><font size="2">:I</font></td>
<td rowspan="7" width="2"></td>
<td nowrap><font size="2"><img title="Rødmende" src="http://www.arto.dk/smilies/icon_smile_blush.gif" height="15" width="15" align="center" border="0" onClick="insertSmiley(':I');"></font></td>
<td rowspan="7" width="7"></td>
<td nowrap><font size="2">8)</font></td>
<td rowspan="7" width="2"></td>
<td nowrap><font size="2"><img title="Genert / uskyldig" src="http://www.arto.dk/smilies/icon_smile_shy.gif" height="15" width="15" align="center" border="0" onClick="insertSmiley('8)');"></font></td>
</tr>
<tr>
<td nowrap><font size="2">

</font></td>
<td nowrap><font size="2"><img title="Stort smil" src="http://www.arto.dk/smilies/icon_smile_big.gif" height="15" width="15" align="center" border="0" onClick="insertSmiley('

');"></font></td>
<td nowrap><font size="2">8D</font></td>
<td nowrap><font size="2"><img title="Smart" src="http://www.arto.dk/smilies/icon_smile_cool.gif" height="15" width="15" align="center" border="0" onClick="insertSmiley('8D');"></font></td>
<td nowrap><font size="2">:o)</font></td>
<td nowrap><font size="2"><img title="Klovn" src="http://www.arto.dk/smilies/icon_smile_clown.gif" height="15" width="15" align="center" border="0" onClick="insertSmiley(':o)');"></font></td>
</tr>
<tr>
<td nowrap><font size="2">

</font></td>
<td nowrap><font size="2"><img title="Glimt i øjet" src="http://www.arto.dk/smilies/icon_smile_wink.gif" height="15" width="15" align="center" border="0" onClick="insertSmiley('

');"></font></td>
<td nowrap><font size="2">

</font></td>
<td nowrap><font size="2"><img title="Rækker tunge" src="http://www.arto.dk/smilies/icon_smile_tongue.gif" height="15" width="15" align="center" border="0" onClick="insertSmiley('

');"></font></td>
<td nowrap><font size="2">:x</font></td>
<td nowrap><font size="2"><img title="Kys" src="http://www.arto.dk/smilies/icon_smile_kisses.gif" height="15" width="15" align="center" border="0" onClick="insertSmiley(':x');"></font></td>
</tr>
<tr>
<td nowrap><font size="2">:

</font></td>
<td nowrap><font size="2"><img src="http://www.arto.dk/smilies/nye_rolleyes.gif" height="15" width="15" border="0" onClick="insertSmiley(':

');"></font></td>
<td nowrap><font size="2">:o!</font></td>
<td nowrap><font size="2"><img src="http://www.arto.dk/smilies/nye_shocked.gif" height="15" width="15" border="0" onClick="insertSmiley(':o!');"></font></td>
<td nowrap><font size="2">I)</font></td>
<td nowrap><font size="2"><img title="Træt / sover" src="http://www.arto.dk/smilies/icon_smile_sleepy.gif" height="15" width="15" align="center" border="0" onClick="insertSmiley('I)');"></font></td>
</tr>
<tr>
<td nowrap><font size="2">:-*</font></td>
<td nowrap><font size="2"><img src="http://www.arto.dk/smilies/nye_kiss.gif" height="15" width="15" border="0" onClick="insertSmiley(':-*');"></font></td>
<td nowrap><font size="2">xx(</font></td>
<td nowrap><font size="2"><img title="Død" src="http://www.arto.dk/smilies/icon_smile_dead.gif" height="15" width="15" align="center" border="0" onClick="insertSmiley('xx(');"></font></td>
<td nowrap><font size="2">:o</font></td>
<td nowrap><font size="2"><img title="Chokeret" src="http://www.arto.dk/smilies/icon_smile_shock.gif" height="15" width="15" align="center" border="0" onClick="insertSmiley(':o');"></font></td>
</tr>
<tr>
<td nowrap><font size="2">

</font></td>
<td nowrap><font size="2"><img title="Vred / skuffet" src="http://www.arto.dk/smilies/icon_smile_sad.gif" height="15" width="15" align="center" border="0" onClick="insertSmiley('

');"></font></td>
<td nowrap><font size="2">}

</font></td>
<td nowrap><font size="2"><img src="http://www.arto.dk/smilies/icon_smile_evil.gif" height="15" width="15" border="0" onClick="insertSmiley('}

');"></font></td>
<td nowrap><font size="2">B)</font></td>
<td nowrap><font size="2"><img title="Enøjet" src="http://www.arto.dk/smilies/icon_smile_blackeye.gif" height="15" width="15" align="center" border="0" onClick="insertSmiley('B)');"></font></td>
</tr>
<tr>
<td nowrap><font size="2">

</font></td>
<td nowrap><font size="2"><img src="http://www.arto.dk/smilies/nye_cry.gif" height="15" width="15" border="0" onClick="insertSmiley(':\\'(');"></font></td>
<td nowrap><font size="2">

!</font></td>
<td nowrap><font size="2"><img title="Meget vred / skuffet" src="http://www.arto.dk/smilies/icon_smile_angry.gif" height="15" width="15" align="center" border="0" onClick="insertSmiley('

!');"></font></td>
<td nowrap><font size="2">:-[</font></td>
<td nowrap><font size="2"><img src="http://www.arto.dk/smilies/nye_embarassed.gif" height="15" width="15" border="0" onClick="insertSmiley(':-[');"></font></td>
</tr>
</table>
<!-- /Smilies -->
</td>
</tr>
</table></td>
</tr>
<tr>
<td nowrap width="51"></td>
<td nowrap width="235">
<!-- Gem kopi -->
<table border="0" cellpadding="3" cellspacing="0">
<tr>
<td></td>
<td></td>
</tr>
</table>
<!-- /Gem kopi -->
</td>
<td nowrap width="169"></td>
</tr>
<tr>
<td nowrap width="51"></td>
<td nowrap width="235">
<!-- Submit og sig -->
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><font size="2"><input type="submit" value="Send" tabindex="4"> </font></td>
</tr>
</table>
<!-- /Submit og sig -->
</td>
<td width="169"><font size="2"></form></font></td>
</tr>
</table>
<!-- /Indhold af ¿verste del af siden -->
</td>
</tr>
</table>
<!-- /¯verste del af siden -->
</body>
</html>