rvp032582
Posts: 47
|
Posted: 07/06/2008, 5:09 PM |
|
i need to add to a hidden field text box to a form. this field must not have data in it. if there is data in it then the form must not submit. basically this is another way to prevent spam.
i know how to: insert a hidden text box
what i don't know how to do: is create custom code that basically says If text box name has data in it, then do not allow the form to be submitted etc.
does anyone know in asp and php how to go about it? would it be a Before Execute Insert event code?
|
|
|
wkempees
Posts: 1679
|
Posted: 07/07/2008, 12:25 AM |
|
PHP:
$object->InsertAllowed = false / true;
$object->UpdateAllowed = false / true;
$object->DeleteAllowed = false / true;
ASP:
object.InsertAllowed = false / true;
object.UpdateAllowed = false / true;
object.DeleteAllowed = false / true;
Can be set.
You can do this even in Before Show.
Set to false then on Submit test for dtaa in your hidden field and set to true when empty.
Walter
(Hate double posts)
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
|
|
|