close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Validating Hidden Field

Thread began 3/27/2010 9:52 pm by bbifl346249 | Last modified 3/29/2010 10:48 am by Jason Byrnes | 753 views | 1 replies |


Validating Hidden Field

I have a hidden field within a 'Contact Me' form, to be submitted via Universal email.

I set this field to be the Subject of the email. That way when the email is received, I know from which form it has been sent. I realize that I could set the Subject directly in Universal Email, but I want to use this field as a check to stop bots submitting via my form.

Using validation I'd like to create a rule that checks that the Subject field is as I expect, for example; "Here's your requested link".

How can I set up a validation rule to do this ?


Sign in to reply to this post

Jason ByrnesWebAssist

You can create a session variable and set it to the value you want the hidden form element to be and use the like entry server validation to compare the hidden element against the session variable:

Go to the bindings panel. Click the plus button and select "Session Variable". Name the session variable "Subject".

On you page add the following code at line 1 to set the session variable:


if (!session_id()) session_start();
$_SESSION['Subject'] = "Here's your requested link";

In the server validation wizard, select the hidden form element, and select the Like Entry validation type, when you click the plus button to add it, select the Subject session variable.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...