Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support
Sign in to follow this  
MacTV

Gästebuch-Eintrag-Scripte > Hilfe?

Recommended Posts

Von den 10 Dingen die ich hasse sind auf Platz 3 diese "Gästebuch-Eintrag-Scripte"

Es wurde soeben folgender Eintrag von fistss in Ihrem Gästebuch hinterlassen:

Cool perez ;)

http://4allfree.com/cgi/gb.id?dating <a href="http://4allfree.com/cgi/gb.id?dating">dating online</a>

Es wurde soeben folgender Eintrag von fistss in Ihrem Gästebuch hinterlassen:

Mega Page, you cool man :)

http://4allfree.com/cgi/gb.id?cigarette <a href="http://4allfree.com/cgi/gb.id?cigarette">cheap cigarette</a>

Es gibt ja wohl nicht was mehr nervt ...

----------------------------------------------------------------------------------

So und nun zu meiner Frage, ich habe ein Gästebuch und dieses hat ca. 200 Einträge.

Und bei 200 Einträgen, habe ich nun wirklich keine Zeit alle Einträge in ein neues und sicheres System zu übertragen.

Nun habe ich mir gedacht man könnte doch in diesem Gästebuch einen Spam Schutz

nachträglich einbauen.

Ich möchte gerne das entweder ne Checkbox der der Eintrager anklicken muss

oder vielleicht geht ja auch ein Nummerblock Code ?

Nur wie geht das ?

Dieses Gästebuch ist wirklich sehr einfach geschrieben:

<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="50%">

  <tr>

    <td width="50%"><font color="#FFFFFF" face="Verdana" size="2">Ihr Name:</font></td>

    <td width="50%"><font color="#FFFFFF" face="Verdana" size="2">Ihre E-Mail-Adresse:</font></td>

  </tr>

  <tr>

    <td width="50%"><input type=text name="name" size="20"></td>

    <td width="50%"><input type=text name="email" size="20"></td>

  </tr>

  <tr>

    <td width="50%"><font color="#FFFFFF" face="Verdana" size="2">Homepage-Adresse:</font></td>

    <td width="50%"><font color="#FFFFFF" face="Verdana" size="2">ICQ UIN:</font></td>

  </tr>

  <tr>

    <td width="50%"><input type=text name="homepage" size="20"></td>

    <td width="50%"><input type=text name="icq" size="20"></td>

  </tr>

</table>

<font color="#FFFFFF" face="Verdana" size="2"><br>Ihr Kommentar:<br>

<textarea rows="5" cols="65" wrap="virtual" name="nachricht"></textarea><br>

<br>

<input type="submit" value="Eintragen">
Ich dachte schon das ich einfach nen Kästchen einbaue, doch leider habe ich da einen Fehler drin:
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="50%">

  <tr>

    <td width="50%"><font color="#FFFFFF" face="Verdana" size="2">Ihr Name:</font></td>

    <td width="50%"><font color="#FFFFFF" face="Verdana" size="2">Ihre E-Mail-Adresse:</font></td>

  </tr>

  <tr>

    <td width="50%"><input type=text name="name" size="20"></td>

    <td width="50%"><input type=text name="email" size="20"></td>

  </tr>

  <tr>

    <td width="50%"><font color="#FFFFFF" face="Verdana" size="2">Homepage-Adresse:</font></td>

    <td width="50%"><font color="#FFFFFF" face="Verdana" size="2">ICQ UIN:</font></td>

  </tr>

  <tr>

    <td width="50%"><input type=text name="homepage" size="20"></td>

    <td width="50%"><input type=text name="icq" size="20"></td>

  </tr>

</table>

<font color="#FFFFFF" face="Verdana" size="2"><br>Ihr Kommentar:<br>

<textarea rows="5" cols="65" wrap="virtual" name="nachricht"></textarea><br>

<input type="checkbox" name="agree" id="agree" value="ON" />Ja, ich will was eintragen.</p>

<br>

<input type="submit" value="Eintragen" onsubmit="return checkForm();">

<script language="Javascript">

<!--

function checkForm() {

  if(!document.getElementById('agree').checked) {

	alert('You must agree to the terms');

	return false;

  }

  return true;

}

//-->

</script>

Weiss jemand Rat ?

Share this post


Link to post

So ich habe mal was gefunden und eingebaut. Mal sehen ob es klappt...

<html>

<head>

<title>test</title>

<script language="javascript">

 function checkButton(){

  if(document.frm.chk.checked){

   document.frm.btn.style.visibility = "visible";

  }else{

   document.frm.btn.style.visibility = "hidden";

  }

 }

</script>

</head>

<body onload="checkButton()">

<form name="frm">

<input id="chk" type="checkbox" value="1" onclick="checkButton()">

<input id="btn" type="button" value="button">

</form>


</body>

</html>
bzw.
<form name="frm">

<form action="<? echo $PHP_SELF ?>" method=post><input type=hidden name="action" value="eintrag">


<!-- Diesen Teil können Sie ohne weiteres verändern beachten Sie nur, dass die Eingabefelder ihre Namen behalten. //-->


<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="50%">

  <tr>

    <td width="50%"><font color="#FFFFFF" face="Verdana" size="2">Ihr Name:</font></td>

    <td width="50%"><font color="#FFFFFF" face="Verdana" size="2">Ihre E-Mail-Adresse:</font></td>

  </tr>

  <tr>

    <td width="50%"><input type=text name="name"></td>

    <td width="50%"><input type=text name="email"></td>

  </tr>

  <tr>

    <td width="50%"><font color="#FFFFFF" face="Verdana" size="2">Homepage-Adresse:</font></td>

    <td width="50%"><font color="#FFFFFF" face="Verdana" size="2">ICQ UIN:</font></td>

  </tr>

  <tr>

    <td width="50%"><input type=text name="homepage"></td>

    <td width="50%"><input type=text name="icq"></td>

  </tr>

</table>

<font color="#FFFFFF" face="Verdana" size="2"><br>Ihr Kommentar:<br>

<textarea rows="5" cols="65" wrap="virtual" name="nachricht"></textarea><br>

<br>


KLICK MICH AN! »<input id="chk" type="checkbox" value="1" onclick="checkButton()">«&nbsp;&nbsp;<input id="btn" type="submit" value="Eintragen">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="Löschen">

</form>

Share this post


Link to post

Ich würde einen zufälligen Nummerncode per PHP als Bild empfehlen. Grund ist, dass manche Skripte semi-intelligent programmiert sind und einfach alles anklicken, was anklickbar ist. Aber eine zufällige Nummer können sie nicht unbedingt erraten (gut, wirklich _gute_ Skripte können auch das Bild interpretieren, aber da ist der Aufwand zu groß).

Gruß

Grey

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×