Don't worry Mal - if your picture was there I would always click on you
Announcement
Collapse
No announcement yet.
tutorial: stop spam with a contact form captcha
Collapse
X
-
Jont i seriously wonder how much the MiL has had on you this last year, i am really concerned for the responses recieved lately, they are almost disturbing maybe not as much as Gabe but its a slippery slope
Ohhhh morning Miss Bumps, what you doing here anyway your suppose to be enjoying a weekend away
D
Comment
-
Firstly, sorry for bumping such an old thread. I've attempted to install this on a test site using Actinic 8.5.2.0.0.0 HMVA.
I have placed all files as necessary at the server root, and made the necessary changes to 'Works best with Smart', 'Works best with Smart brochure pages' and the 'Contact Us Bulk Area' layout pages.
I can navigate to the contact page, and the captcha appears as expected. I enter name, email, subject and the email content, click submit - i receive the error telling me to enter the captcha word. I enter the word correctly, press submit, and the contact page displays an error at the top, saying:
Code:"Name:" is required. "Subject:" is required. "Email Address:" is required. "Message:" is required.
Code:<input type="hidden" name="RANDOM" value="<actinic:variable name='Random'/>" /> <actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e"> <!-- Hidden field when in trial mode --> <input type="hidden" name="SHOP" value="<Actinic:Variable Name="HiddenFields"/>" /> </actinic:block> <actinic:variable Name="ValidationError"/> <table cellpadding="3" cellspacing="0"> <tr> <td width="15"> </td> <td colspan="2"> <strong><Actinic:Variable Name="MailFormHeader"/></strong><br /> <br /> </td> </tr> <tr> <td> </td> <td> <span class="actrequired"><Actinic:Variable Name="MailFormName"/> *</span> </td> <td> <input type="text" name="Name" size="50" value="<Actinic:Variable Name="MailFormNameValue"/>" /> </td> </tr> <tr> <td> </td> <td> <span class="actrequired"><Actinic:Variable Name="MailFormSubject"/> *</span> </td> <td> <input type="text" name="Subject" size="50" value="<Actinic:Variable Name="MailFormSubjectValue"/>" /> </td> </tr> <tr> <td> </td> <td> <span class="actrequired"><Actinic:Variable Name="MailFormEmail"/> *</span> </td> <td> <input type="text" name="EmailAddress" size="50" value="<Actinic:Variable Name="MailFormEmailValue"/>" /> </td> </tr> <tr> <td valign="top"> </td> <td valign="top"> <span class="actrequired"><Actinic:Variable Name="MailFormMessage"/> *</span> </td> <td> <textarea type="text" rows="10" cols="45" name="Message"><Actinic:Variable Name="MailFormMessageValue"/></textarea> </td> </tr> <tr> <td valign="top"> </td> <td valign="top"> Enter the code as it is shown:<br /> <script language="javascript" type="text/javascript">cimg()</script><br /> <input type=text name="uword" id="uword" value="" size=20><br /> <noscript>[This resource requires a Javascript enabled browser.]</noscript> </td> </tr> <tr> <td valign="top"> </td> <td valign="top"> </td> <td> <form method="post" action="<Actinic:Variable Name="SendMailPageURL"/>xpy" name="xfrm" onsubmit="return jcap();"> <input type="submit" name="ACTION" value="<Actinic:Variable Name="MailFormSendButton"/>" /> </td> </tr> <tr> <td valign="top"> </td> <td colspan="2" valign="top"> <Actinic:Variable Name="RequiredFields"/> <span class="actrequired"><Actinic:Variable Name="Highlighted"/></span>. </td> </tr> </table> </form>
Thanks,
Grant
Comment
-
Thanks alot Bruce - I remembered I took it out to replace it in the correct library file, but forgot to paste it back in. Now that I've got it half-working.
The problem is now that I can enter all the required info, then either leave the captcha blank or enter anything and it'll still send - well, it does show the Email Sent page so I assume it has sent for now. I'll re-read over this topic and see if anyone else had this problem, as I recall reading somewhere on the forums that someone did have this same/similar problem. I'll report my findings.
Thanks alot.
Edit, I've got it workin I had left the standard unedited SendMailPageURL variable piece of code at the top of the library contact us bulk page, as well as the appended version with javascript variables in tow.
Thanks alot guys. Now all I gotta do is get this installed on the site in my sig, which does get spam. All ~200 of them everyday.
Cheers
Comment
-
Im getting a bit of spam, and this looks good - unfortunately the JS at http://www.interact-studio.co.uk/jcap.zip is a dead link? Any chanc eof replacement link?
Comment
-
the file is lost forever, however:
http://www.archreality.com/jcap/
is the guy that write the original.
The concepts should be the same.
Comment
Comment