I just need a checkbox in add.cgi so users can give an agreement to the "terms of use"
I found a javascript whick enables the add-button until zu check the checkbox
BUT
I dont know how to integrate the script in the the links 2.0 form in add.cgi, so that the add.cgi button is enabled until you check the checkbox?
Here is the javascript
<SCRIPT language=JavaScript>
<!--
function checkCheckBox(f){
if (f.agree.checked == false )
{
alert('Bitte klicken Sie die Checckbox an, um fortzufahren.');
return false;
}else
return true;
}
//-->
</SCRIPT>
<form action="" method="GET" onsubmit="return checkCheckBox(this)">
<b>Durch Abschicken des Formulars erkläre ich, die AGBs gelesen und akzeptiert zu haben.</b><br>
AGBs gelesen und akzeptiert: <input type="checkbox" value="0" name="agree">
<input type="submit" value="weiter">
</form>
And here is my add.cgi form
<p class="dateinormal"><font size="2"><b> </b></font>
<form action="<%db_cgi_url%>/eintrag.cgi" method="POST">
<div align="center">
<center>
<table border ="0" cellspacing="1" cellpadding="3">
<tr>
<td valign="top" nowrap><b><font size="2">Titel:</font></b></td>
<td valign="top">
<input name="Titel" size="40">
</td>
</tr>
<tr>
<td valign="top" nowrap></td>
<td valign="top">
<input type=hidden name="URL" size="30">
</td>
</tr>
<tr>
<td valign="top" nowrap><b><font size="2">Kategorie:</font></b></td>
<td valign="top"><font size="2">
<%Kategorie%>
</font></td>
</tr>
<tr>
<td valign="top" nowrap><b><font size="2">Beschreibung:</font></b></td>
<td valign="top">
<textarea wrap="virtual" name="Beschreibung" value="" rows="5" cols="35"></textarea>
</td>
</tr>
<tr>
<td valign="top" nowrap><b><font size="2">Name:</font></b></td>
<td valign="top">
<input name="Name" size="30">
</td>
</tr>
<tr>
<td valign="top" nowrap><b><font size="2"> Email:</font></b></td>
<td valign="top">
<input name="Email" size="30">
</td>
</tr>
<tr>
<td></td>
<td>
<input type="SUBMIT" value="Daten eintragen" name="SUBMIT" class=button>
</center>
<pre class="zitat">Bitte nur einmal klicken !!!</pre>
</td>
</tr>
</table>
</div>
</form>
Can anyone help me?
Matthias
Matthias
gpaed.de
I found a javascript whick enables the add-button until zu check the checkbox
BUT
I dont know how to integrate the script in the the links 2.0 form in add.cgi, so that the add.cgi button is enabled until you check the checkbox?
Here is the javascript
Code:
<SCRIPT language=JavaScript>
<!--
function checkCheckBox(f){
if (f.agree.checked == false )
{
alert('Bitte klicken Sie die Checckbox an, um fortzufahren.');
return false;
}else
return true;
}
//-->
</SCRIPT>
<form action="" method="GET" onsubmit="return checkCheckBox(this)">
<b>Durch Abschicken des Formulars erkläre ich, die AGBs gelesen und akzeptiert zu haben.</b><br>
AGBs gelesen und akzeptiert: <input type="checkbox" value="0" name="agree">
<input type="submit" value="weiter">
</form>
And here is my add.cgi form
Code:
<p class="dateinormal"><font size="2"><b> </b></font>
<form action="<%db_cgi_url%>/eintrag.cgi" method="POST">
<div align="center">
<center>
<table border ="0" cellspacing="1" cellpadding="3">
<tr>
<td valign="top" nowrap><b><font size="2">Titel:</font></b></td>
<td valign="top">
<input name="Titel" size="40">
</td>
</tr>
<tr>
<td valign="top" nowrap></td>
<td valign="top">
<input type=hidden name="URL" size="30">
</td>
</tr>
<tr>
<td valign="top" nowrap><b><font size="2">Kategorie:</font></b></td>
<td valign="top"><font size="2">
<%Kategorie%>
</font></td>
</tr>
<tr>
<td valign="top" nowrap><b><font size="2">Beschreibung:</font></b></td>
<td valign="top">
<textarea wrap="virtual" name="Beschreibung" value="" rows="5" cols="35"></textarea>
</td>
</tr>
<tr>
<td valign="top" nowrap><b><font size="2">Name:</font></b></td>
<td valign="top">
<input name="Name" size="30">
</td>
</tr>
<tr>
<td valign="top" nowrap><b><font size="2"> Email:</font></b></td>
<td valign="top">
<input name="Email" size="30">
</td>
</tr>
<tr>
<td></td>
<td>
<input type="SUBMIT" value="Daten eintragen" name="SUBMIT" class=button>
</center>
<pre class="zitat">Bitte nur einmal klicken !!!</pre>
</td>
</tr>
</table>
</div>
</form>
Can anyone help me?
Matthias
Matthias
gpaed.de