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

rating

Validation Show If

Thread began 4/05/2012 9:45 pm by Mysite07430650 | Last modified 4/06/2012 12:35 pm by Jason Byrnes | 1661 views | 7 replies |

Mysite07430650

Validation Show If

Hello everyone,

Can some please explain why the Validation Show If worked in one instance and fail to work thereafter. I inserted Captcha to my form page and got that working and displaying as it should. The Validation Show if error message although inserted as prescribed in the video tutorial, doesn't seem to respond to incorrect codes entered after only responding once yesterday.

Please help!

Thank you.

Sign in to reply to this post

Jason ByrnesWebAssist

please send a link where i can see the problem and a copy of the page in a zip archive to troubleshoot.

also, double check that the server is properly configured to save session variables by using the session test page in this thread:
showpost.php?p=23826&postcount=2

if the session test fails it is likely a problem in the php.ini file with a bad setting for the session.save_path, you will need to contact the host to have the issue corrected.

Sign in to reply to this post

Mysite07430650

Originally Said By: Jason Byrnes
  please send a link where i can see the problem and a copy of the page in a zip archive to troubleshoot.

also, double check that the server is properly configured to save session variables by using the session test page in this thread:
showpost.php?p=23826&postcount=2

if the session test fails it is likely a problem in the php.ini file with a bad setting for the session.save_path, you will need to contact the host to have the issue corrected.  



Hello Jason,

I have uploaded the session test php file and the test passed. The Captcha image appears to be greyed out.

Please attached a zip file of the php page containing the form elements.

Remote server links:

Captcha image - myform10.php
SessionTest - sessionTest.php

Attached Files
myform10.zip
Sign in to reply to this post

Jason ByrnesWebAssist

1) your form tag does not have a method attribute set:
<form id="frmContact">

this will cause the form to use the get method. captcha validation will only work for a form that uses the POST method:
<form id="frmContact" method="post">


2) accessing the file that generates the captcha image:
wavt_captchasecurityimages.php


gives a number of errors referencing the open base dir restriction, captcha valuidation will not work on a server where the open_basedir restriction prevents access to the supporting files.

the errror is saying that webassist/captcha/fonts directory is not in the allowed paths, this directory will need to be added to the servers allowed paths also, if i try to access the font file directly:
MOM_T___.TTF

i get a 404 error meaning this has not been uploaded to the server.

Sign in to reply to this post

Mysite07430650

Originally Said By: Jason Byrnes
  1) your form tag does not have a method attribute set:
<form id="frmContact">

this will cause the form to use the get method. captcha validation will only work for a form that uses the POST method:
<form id="frmContact" method="post">


2) accessing the file that generates the captcha image:
wavt_captchasecurityimages.php


gives a number of errors referencing the open base dir restriction, captcha valuidation will not work on a server where the open_basedir restriction prevents access to the supporting files.

the errror is saying that webassist/captcha/fonts directory is not in the allowed paths, this directory will need to be added to the servers allowed paths also, if i try to access the font file directly:
MOM_T___.TTF

i get a 404 error meaning this has not been uploaded to the server.  



Thanks.

The Form can now display the validation error message after including the method="post".

For the Captcha Image to be displayed do I need to contact the web hosting company to have them make changes?

Sign in to reply to this post

Jason ByrnesWebAssist

yes, you will need to contact the host and also upload the webassist/captcha/fonts/ folder.

Sign in to reply to this post

Mysite07430650

Originally Said By: Jason Byrnes
  yes, you will need to contact the host and also upload the webassist/captcha/fonts/ folder.  



Hello Jason,

I used a different another FTP programme to upload the files and the Captcha image is displaying. Do you think the setting for the remote server in Dreamweaver could be wrong?

Sign in to reply to this post

Jason ByrnesWebAssist

If dreamweaver can upload other files to the server, it is not a problem with the site settings.

the reality is that dreamweaver is not the most reliable FTP program in the world, i always have another ftp program on hand just in case.

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

Content

rating

Layout

rating

Ease of use

rating

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