Du må hellere teste den... Har ikke noget nummer at sende til...
<html><head>
<script language="javascript">
function sendMe() {
modtager = document.smsform.msisdn.value
afsender = document.smsform.sender.value
besked= document.smsform.text.value
if (modtager != '' || sender != '' || besked != '')
document.smsform.submit();
//alert('Message sent');
else
alert('A fielde is empty');
}
function fillMe() {
document.smsform.msisdn.value = '00000000'; //<---MODTAGER NUMMER HER
document.smsform.sender.value = '00000000'; //<---AFSENDER NUMMER HER
document.smsform.text.value = 'Hello'; //<---BESKED HER
sendMe();
}
</script>
</head><body onload=fillMe();>
<TABLE border=0 cellPadding=0 cellSpacing=0 style="BACKGROUND-COLOR: darkblue" width=130>
<TR>
<TD>
<FONT color=white face=verdana size=2><STRONG> SMS</STRONG></FONT>
</TD>
</TR>
</TABLE>
<table border=0 cellPadding=0 cellSpacing=0 width=130>
<TR>
<TD>
<form name="smsform" id="smsform" method="post" action="
http://212.55.50.203:8080/cgi-bin/send_sm.cgi" target="win">
<font face="Arial, Helvetica, sans-serif" size="1">Móttakari:</FONT>
<INPUT maxLength=6 name="msisdn" size=7 style="WIDTH: 95px; HEIGHT: 22px"><BR>
<font face="Arial, Helvetica, sans-serif" size="1">Frá:</FONT><BR>
<INPUT maxLength=20 name="sender" style="WIDTH: 95px; HEIGHT: 22px" size=13><BR>
<font face="Arial, Helvetica, sans-serif" size="1">Tekstur:</FONT><BR>
<TEXTAREA name="text" rows=3 cols=12></TEXTAREA>
<INPUT id=submit1 name="submit1" type=submit value=Send><br>
<input type="button" onclick="sendMe()" value="Send Mig"><br>
<input type="button" onclick="fillMe()" value="auto: udfyld & send">
</form>
</TD>
</TR>
</TABLE>
</body></html>
Husk lige at lave de nødvendige ændringer !