CAPTCHA protection using PHP
Forum rules
This section is to share tips, tricks and tutorials related to WYSIWYG Web Builder.
Please do not post questions or problems here. They will not be answered.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
This section is to share tips, tricks and tutorials related to WYSIWYG Web Builder.
Please do not post questions or problems here. They will not be answered.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
- iamafireman
-
- Posts: 84
- Joined: Mon May 26, 2008 2:41 am
- Location: Tennessee
i have done this once and all went well, I tried it again for a different site and i cannt get the image to show.
http://ttmptest.info/Availability.php
http://ttmptest.info/Availability.php
- iamafireman
-
- Posts: 84
- Joined: Mon May 26, 2008 2:41 am
- Location: Tennessee
When I call captcha.php directly in the url bar it shows this error message:
When I call arial.ttf directly in the url bar a message indicates that the file is not a valid font file.
So there must be something wrong with that font file.Warning: imagettftext(): Could not read font in /home/content/d/o/n/donnajarrett/html/ttmptest/captcha.php on line 29
Warning: imagettftext(): Could not read font in /home/content/d/o/n/donnajarrett/html/ttmptest/captcha.php on line 31
When I call arial.ttf directly in the url bar a message indicates that the file is not a valid font file.
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Ok, here is a fast one. It takes care of multipe departments (actually unlimited...) using a dropdowm.
You can test it at http://www.dbtechnosystems.com/wb5/contact_multiple.php
And you can download it at http://www.dbtechnosystems.com/wb5/mult ... tments.wbs
Please note that this script combines the method described in viewtopic.php?t=14938 with your requirements.
The code in the form page Start of Page should not be changed. Neither should the value of the hidden field.
The processing script is in the page confirm1.php
Please note that you will need to add here the email addresses. You will see the code:
$subject = 'New Submission from our Mulriple Department Website form';
$message = 'Values submitted from web site form to department: '.$_POST['department'];
$error_url = 'errorpage1.php';
$address['Sales'] = "sales@yourdomain.com";
$address['Warranty]' = "warranty@yourdomain.com";
$address['Manufacturing'] = "manufacturing@yourdomain.com";
$department_error = "Invalid department selection!<br>";// You can change this as required
Customize the parts in red as required.
Please note that i have used three departments in the listbox: Sales, Warranty, Manufacturing (taken from your page).
The values in the square brackets MUST be exactly as the values in the form combobox. The email addresses MUST be, for each one, the email address where you want the mail to be sent.
You can also cusomize the Subject, start of the message, and the error hat will be displayed (though it NEVER should) if the email address is not found due to a mistype.
You can test it at http://www.dbtechnosystems.com/wb5/contact_multiple.php
And you can download it at http://www.dbtechnosystems.com/wb5/mult ... tments.wbs
Please note that this script combines the method described in viewtopic.php?t=14938 with your requirements.
The code in the form page Start of Page should not be changed. Neither should the value of the hidden field.
The processing script is in the page confirm1.php
Please note that you will need to add here the email addresses. You will see the code:
$subject = 'New Submission from our Mulriple Department Website form';
$message = 'Values submitted from web site form to department: '.$_POST['department'];
$error_url = 'errorpage1.php';
$address['Sales'] = "sales@yourdomain.com";
$address['Warranty]' = "warranty@yourdomain.com";
$address['Manufacturing'] = "manufacturing@yourdomain.com";
$department_error = "Invalid department selection!<br>";// You can change this as required
Customize the parts in red as required.
Please note that i have used three departments in the listbox: Sales, Warranty, Manufacturing (taken from your page).
The values in the square brackets MUST be exactly as the values in the form combobox. The email addresses MUST be, for each one, the email address where you want the mail to be sent.
You can also cusomize the Subject, start of the message, and the error hat will be displayed (though it NEVER should) if the email address is not found due to a mistype.
Last edited by Navaldesign on Fri Jan 09, 2009 6:52 am, edited 1 time in total.
www.dbtechnosystems.com
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
If spammers have already got your email address from the site, and send you spam directly (not through your form) there is no way to stop them.
I suggest installing on your PC Windows Live Mail instead of the classic Outlook Express, as it has pretty good spam filters and gets continously updated with the newest spam servers lists.
I suggest installing on your PC Windows Live Mail instead of the classic Outlook Express, as it has pretty good spam filters and gets continously updated with the newest spam servers lists.
www.dbtechnosystems.com
-
-
- Posts: 51
- Joined: Tue Jun 19, 2007 4:27 pm
- Location: United Kingdom
- Contact: