View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Customize the Validation PHP code and adding to my own form?

Thread began 10/26/2009 3:56 pm by carlene | Last modified 10/26/2009 7:34 pm by carlene | 2727 views | 5 replies

carleneBeta Tester

Customize the Validation PHP code and adding to my own form?

I've followed the instructions for adding the Captcha to my own form and it's working just fine. I'd like to add the PHP Validation to my own form as well, but am a little confused as to what to do here.
For Example:
With this code from lines 82 -94 of sample_contactus.php :
<input name="seconddblock" id="seconddblock" type="text" style="display:none" value="" />
if (ValidatedField("contact","contact")) {
if ((strpos((",".ValidatedField("contact","contact").","), "," . "2" . ",") !== false || "2" == "")) {
if (!(false)) {
<span id="emailServerError" class="textfieldServerError">Please provide your email addess so we can get back in touch with you.</span>
<?php //WAFV_Conditional contact.php contact(2:)

Is "seconddblock" defined in the CSS SpryValidationTextField.css or the SpryValidationTextarea.css? Does this have to be form specific and need to be in there? I'm using my own form formatting. Also what does "contact" refer to? (That isn't the id of the sample_contactus.php form.) And what does php //WAFV_Conditional contact.php contact(2:) refer to?

Just trying to reverse engineer this PHP code and I guess I need it a little more spelled out.

I'm also wondering if there is more explanation for customization or for the PHP code in any of the documentation? Am I missing something?



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...