CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 required a textbox be blank

Print topic Send  topic

Author Message
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?
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.