also, hier der code meiner page.
was ist falsch? warum geht formcheck nicht?
****code anfang****
<script language="JavaScript" type="text/javascript">
<!--
function formcheck() {
if (document.forms[0].elements["Name:="].value=="") {
alert("please typin in your name");
document.forms[0].elements["Name:="].focus();
return false;
}
var Text=document.forms[0].elements["Text:="].value
if (Text=="") {
alert("please insert a message");
document.forms[0].elements["Text:="].focus();
return false;
}
if (Text.length > 5000) {
alert("message is too long!");
document.forms[0].elements["Text:="].focus();
return false;
}
}
//-->
</script>
<TITLE>spacken im weltall</TITLE>
<META NAME="language" CONTENT="deutsch, de">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<style type="text/css">
a:link { color: red; text-decoration: none}
a:visited { color: #41a2a2; text-decoration: none}
a:hover { font-weight: none; color: white; text-decoration: none}
a:active { color: #42a2a2; text-decoration: none}
INPUT, TEXTAREA, FORM, SELECT
{font-family: verdana color: #ffffff;
font: normal 8pt; color: white; background-color: #990000; color: #990000); border: 1 ridge #ffffff);}
input {background-color: transparent; border-width: 2px; border-color: #FFFFFF; font-family: Verdana; font-size: 10pt; color: #FFFFFF;}
textarea {background-color: #990000; border-width: 2px; border-color: #FFFFFF; font-family: Verdana; font-size: 10pt; color: #FFFFFF;}
select {background-color: #990000; border-width: 2px; border-color: #FFFFFF; font-family: Verdana; font-size: 10pt; color: #FFFFFF;}
</style>
</HEAD>
<body bgcolor=#990000 text="white">
<font face=verdana size="-2">
<style>
body {scrollbar-arrow-color: white;
scrollbar-base-color: #990000;
scrollbar-face-color: #990000;
scrollbar-highlight-color: #990000;
scrollbar-shadow-color : #FFFFFF;}
</style>
spackenland feedback area
<br>
<br><b>spacken</b><br><BR>
<perl>
get "Id==$spackId", "spacken";
get "sepp==$spack","spackenfeed";
if ($_amount_query>0)
{
while(get_next("spackenfeed"))
{
out "";
$gesamt = $gesamt+$note;
}
$schnitt = $gesamt/$_amount_query;
$schnitt=substr($schnitt,0,3);
out "Der spack <b>$sepp</b> wurde<b> $_amount_query </b>mal bewertet und durchschnittlich
mit <b>$schnitt</b> benotet.<br>";
}
else # wenn $_amount_query = 0 ist
{
out "<b>$beat</b> wurde noch nicht bewertet";
}
</perl>
<form form name="daten" method=post action="http://www.baseportal.de/cgi-bin/baseportal.pl?htx=/beatbastler/beatzfeed&cmd=add" enctype="multipart/form-data" enctype="multipart/form-data" onSubmit="return FormCheck()">
<br>
<input type="hidden" name="cmd=" value="add">
<input type="hidden" name="htx=" value="/beatbastler/beatzfeed">
<div align="center">
dein name: <input type="text" name="name:=">
deine email:<input type="text" name="email:="><br><br>
bewertung von spack:
<select name="sepp:=">
<perl>
get "Id==*", "spacken";
while(get_next("spacken"))
{
if ($Id==$spackId)
{
out "<option selected>$spack";
} else
{
out "<option>$spack";
}
}
</perl>
</select>
deine note (1=sehr gut)
<loop db=test2>
<option>$note
</loop>
</select><br><br>
anmerkungen:<br><textarea name="anmerkung:=" cols=21 rows=4></textarea>
<br><br>
<input type="submit" value="abschicken">
</form>
<br><br>
<perl>
out "<table>";
get "Id==$spackId", "spacken";
get "sepp==$beat","spackenfeed";
while(get_next("spackenfeed"))
{
out <<EOF;
<table BORDER="0" CELLSPACING=0 CELLPADDING=0 WIDTH="99%">
<TR><TD WIDTH="73%" VALIGN="TOP" bgcolor="gray">
<FONT SIZE=-2 color="red"><P><b>$name</b> </font> <font size="-2" face="arial">[$email] bewertete mit note <font color="red">$note </FONT></TD></tr><tr>
<TD WIDTH="27%" bgcolor=#990000>
<FONT SIZE=-2><align="left"><i>anmerkung:<br>$anmerkung</font></i></TD>
</TR></TR></TABLE><br><br>
EOF
</perl>
</body>
****code ende****
würde mich riesig über antwort freuen!
*endlich montag* ;o)
grüße
tim