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

Can the CAPTCHA that is used in the contact form solution pack be applied to ANY form

Thread began 9/16/2009 8:36 am by sandy170299 | Last modified 10/19/2009 12:56 pm by sandy170299 | 5344 views | 21 replies

Jason ByrnesWebAssist

line 308 - 311 is the end of a validation show if to show a validation error on the comments filed, the beginning part of that code is not present however.

You actually have two text area elements both named comments:
<textarea name="Comments" cols="50" rows="3" id="Comments"></textarea>
<p>We have access to other producers in Alaska. We can help you find other products like Alaskan bottled water, salmonberry jelly, kelp products, herring, etc. What other Alaskan products would you be interested in?<br />
Product Suggestions: <br />
<textarea name="Comments" cols="50" rows="3" id="Comments"></textarea>

one of those will need to be renamed.

The code for the comments form element should be:

<br />

    <label for="Comments" >Comments:</label>
    <br />
    <span id="sprytextarea1">
    <textarea name="Comments" class="inputText" id="Comments" onblur="if (document.getElementById('commentsServerError')) document.getElementById('commentsServerError').style.display='none'" ><?php echo(ValidatedField("contact","Comments")) ?></textarea>
    <span class="textareaRequiredMsg">A value is required.</span></span>
if (ValidatedField("contact","contact"))  {
  if ((
strpos((",".ValidatedField("contact","contact").","), "," "3" ",") !== false || "3" == ""))  {
    if (!(
false))  {
    <span id="commentsServerError" class="textfieldServerError">Please let us know how we can assist you.<br />
    <?php //WAFV_Conditional contact.php contact(3:)

add the following code after that to add another textarea for product suggestions:

<br>Product Suggestions: <br />

          <textarea name="Product_Suggestions" cols="50" rows="3" id="Product_Suggestions"></textarea><br />

The name and Email form elements should be renamed to "Contact_Name" and "Email_address" so they can pass validation as well.

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