- Code: Select all
<form method="POST" action="addurl.php">
and change to
- Code: Select all
<form method="POST" action="addurl.php" enctype="multipart/form-data" onsubmit="return checkCheckBox(this)">
and search for
- Code: Select all
<input type=submit value="Submit" name=add>
and change to
- Code: Select all
<a href="http://www.mydomain.com/terms.html" target="_blank">TERMS</a> here my message: <input type="checkbox" value="0" name="agree" /><input type=submit value="Submit" name=add>
You should make a new Site call terms.html
and then add this code before
- Code: Select all
{include file='footer.html'}
- Code: Select all
{literal}
<script>
function checkCheckBox(f){
if (f.agree.checked == false )
{
alert('You have not accepted the Terms.');
return false;
}else
return true;
}
</script>
{/literal}
{include file='footer.html'}
Ok?
You can see here on my Site
http://www.rockmonaut.com/addurl.php
mfg
