Page 1 of 1

Posted: Sat Jan 03, 2009 7:21 pm
by chattd
Hi
Have it working now but it is saying the code you entered is wrong

Posted: Sat Jan 03, 2009 8:20 pm
by kees
The Edit Box name should be named captcha_code, but in your form is has an extra space (shown as #): captcha_code#.

Please remove that extra space.

Posted: Sat Jan 03, 2009 8:27 pm
by chattd
Thank you so much for all your help

Posted: Sat Jan 03, 2009 10:18 pm
by iamafireman
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

Posted: Sat Jan 03, 2009 10:36 pm
by kees
I think you forgot to upload the font file.

Or the font file is not spelled correctly. The font name must be spelled exactly as in the script.

Posted: Sun Jan 04, 2009 12:13 am
by iamafireman
i have the font loaded its arial.ttf and thats what in captcha.php I have read through all 6 pages and still missing something

Posted: Sun Jan 04, 2009 9:04 am
by kees
When I call captcha.php directly in the url bar it shows this error message:
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
So there must be something wrong with that font file.

When I call arial.ttf directly in the url bar a message indicates that the file is not a valid font file.

Posted: Tue Jan 06, 2009 10:52 pm
by Navaldesign
Only one captcha per page is possible, unless you modify the script.

However, i don't see how you have used more than one forms in the same page with Form Wizard. Did you use a separate script ?

Posted: Wed Jan 07, 2009 10:57 pm
by Navaldesign
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.

Posted: Mon Jan 19, 2009 5:13 pm
by kees
Yes, it will work.

One remark about your form: Using the built-in form processor, you should have a field named email (lower case). Yours is named Email.

Posted: Mon Jan 19, 2009 8:12 pm
by Navaldesign
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.

Posted: Wed Mar 11, 2009 9:43 pm
by madjamonline
CAPTCHA is so that robots or non-humans cannot submit the form. However, I recon technology is developing to read images! If you just did a simple plain text question, the robot could read the html to find the answer!

Posted: Tue Jun 23, 2009 9:57 pm
by bry
A very clear example of why this is absolutely THE BEST FORUM on the internet. No where else will you find so many very, very smart people so willing to help beginners. WB continues to amaze me.