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

Need step by step for Contact Form

Thread began 1/05/2010 11:14 pm by chris-britton396422 | Last modified 1/11/2010 6:19 pm by chris-britton396422 | 6986 views | 31 replies


Hi Chris,

Nice one.

To remove the security code:

There are three sections to remove (The actual how to .pdf is Here) I think you have alread managed to remove the third one. So, to remove the other two:

1. Look for this exact code in your contactus.php page:

<label for="Security_code" >
<?php require_once("WA_ValidationToolkit/WAVT_CaptchaSecurityQuestion.php"); ?>
<br />
<span id="sprytextfield4">
<input name="Security_question" type="text" class="inputValue" id="Security_question" onblur="if (document.getElementById('securityServerError')) document.getElementById('securityServerError').style.display='none'" maxlength="40" />
<span class="textfieldRequiredMsg">A value is required.</span></span>
if (ValidatedField("contact","contact")) {
if ((strpos((",".ValidatedField("contact","contact").","), "," . "5" . ",") !== false || "5" == "")) {
if (!(false)) {
<span id="securityServerError" class="textfieldServerError">Your answer was not correct.</span>
<?php //WAFV_Conditional contact.php contact(4:)

and remove it. Two things to watch out for:

There are two similar blocks of code, one for the captcha, and one for the security question. It is the second one you need to remove. Make sure it has 'WAVT_CaptchaSecurityQuestion.php' in the third line and not 'WAVT_CaptchaSecurityImages.php'

Take care not to also delete the '?>' after the '}' on the last line of the block of code.

2. Look for this exact code in your contactus.php page:

$WAFV_Errors .= WAValidateLE(((isset($_POST["Security_question"]))?strtolower($_POST["Security_question"]):"") . "",((isset($_SESSION["random_answer"]))?strtolower($_SESSION["random_answer"]):"") . "",true,5);

and remove that.

3. If you were still to remove the third one it would be this code near the end of the page:

var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "none", {validateOn:["blur"]});

To change the security code graphic:

You will need to adjust values in the WA_Globals/WA_Globals.php file:

$WAGLOBAL_Captcha_Width = "200" ; // width of graphic in pixels
$WAGLOBAL_Captcha_Height = "40" ; // height of graphic
$WAGLOBAL_Captcha_Characters = "5" ; //number of characters you want shown
$WAGLOBAL_Captcha_Font = "Fonts/MOM_T___.TTF" ; // Select a font to use. (Fonts are in your WA_ValidationToolkit/Fonts folder)
$WAGLOBAL_Captcha_BG = "ffffff" ; // Background colour (FFF is white)
$WAGLOBAL_Captcha_Noise = "000000" ; // The colour of the 'noise' behind the characters. Black to white: 000000 33333 66666 99999 CCCCC FFFFF
$WAGLOBAL_Captcha_Text = "000000" ; //Text colour (000000 is black - 999999 might be a good substitute)
$WAGLOBAL_Captcha_BG_transparent = "0" ; //Backgrounf transparency
$WAGLOBAL_Email_Server = "" ;
$WAGLOBAL_Contact_Email_Subject = "Online Contact Form Response" ;
$WAGLOBAL_Contact_Email_To = "" ;
$WAGLOBAL_Contact_Email_CC = "" ;
$WAGLOBAL_Contact_Email_BCC = "" ;

If you make the image too easy to read, malicious software could still conceivably 'read' it even although it is an image!


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