Anyway i'd been meaning to force the input of my extra field e.g. a tickbox for T&C's ...
Its really simple to add and may kill a lot of spam..
at the bottom of submit.php before :
Code:
return $error; }
REPLACE with:
Code:
if ($linkres->link_field3 == "") {
$main_smarty->assign('submit_error', 'notick');
$main_smarty->display($the_template . '/submit_errors.tpl');
$error = true;}
return $error;
}
This use link_field3 btw

Then in submit_errors.tpl :
ADD:
Code:
{if $submit_error eq 'notick'}
<p class="error">No tick</p>
<br/>
<form id="thisform">
<input type="button" onclick="javascript:gPageIsOkToExit=true;window.history.go(-1);" value="Return back to add a tick" class="submit">
</form>
{/if}
You can of course use lang to add a error but i'm too lazy..
Anyway you have loads of scope with this like simple maths question or even just a word.. Of course it you valiadate the var your own way which I do then everyones is differenet hence i'm not posting all the code..
Hope that might help..







Linear Mode




