form captcha

This is a discussion on form captcha within the General Development Issues forums, part of the Development category; I am after a form captcha for a template I am making Untitled Document I need one that will fit ...


Reply
 
LinkBack Thread Tools Display Modes
Old 9th August 2009, 11:34 PM   #1
admin
 
saltedm8's Avatar
 
Join Date: Dec 2008
Location: Kent Uk
Posts: 1,595
Blog Entries: 6
Thanks: 15
Thanked 49 Times in 49 Posts
saltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond repute
Expertise: (X)HTML / CSS
Experience: Professional
Default form captcha

I am after a form captcha for a template I am making
Untitled Document

I need one that will fit on the right, under the message box, that does not use tables ( preferably valid so I don't have to mess about ), also is not REALLY hard to read and is pretty easy to install

I know it seems like high criteria but im hoping someone can make a suggestion for a good one

Oh.. and it HAS to be php.. no javascript please

thanks
__________________
web design kent
saltedm8 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 10th August 2009, 01:00 AM   #2
supermod
 
CloudedVision's Avatar
 
Join Date: Jan 2009
Location: Your Imagination
Posts: 729
Blog Entries: 4
Thanks: 1
Thanked 27 Times in 26 Posts
CloudedVision has a spectacular aura aboutCloudedVision has a spectacular aura aboutCloudedVision has a spectacular aura about
Expertise: PHP
Experience: Professional
Default

This looks promising: Securimage PHP Captcha
CloudedVision is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 10th August 2009, 01:09 AM   #3
admin
 
saltedm8's Avatar
 
Join Date: Dec 2008
Location: Kent Uk
Posts: 1,595
Blog Entries: 6
Thanks: 15
Thanked 49 Times in 49 Posts
saltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond repute
Expertise: (X)HTML / CSS
Experience: Professional
Default

it comes flippin close mate, its very nice, my only concern might be that the refresh is javascript, unless I can get someone to give me a hand changing the refresh to php
__________________
web design kent
saltedm8 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 10th August 2009, 02:48 AM   #4
supermod
 
CloudedVision's Avatar
 
Join Date: Jan 2009
Location: Your Imagination
Posts: 729
Blog Entries: 4
Thanks: 1
Thanked 27 Times in 26 Posts
CloudedVision has a spectacular aura aboutCloudedVision has a spectacular aura aboutCloudedVision has a spectacular aura about
Expertise: PHP
Experience: Professional
Default

Well, it could potentially not be too hard. Is this going to be part of a form? Are you using a PHP framework?
CloudedVision is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 10th August 2009, 10:44 AM   #5
admin
 
saltedm8's Avatar
 
Join Date: Dec 2008
Location: Kent Uk
Posts: 1,595
Blog Entries: 6
Thanks: 15
Thanked 49 Times in 49 Posts
saltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond repute
Expertise: (X)HTML / CSS
Experience: Professional
Default

yes, its going to be part of the form I have on the page above... it will be php, just have not got around to coding the form yet
__________________
web design kent
saltedm8 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 10th August 2009, 02:51 PM   #6
supermod
 
CloudedVision's Avatar
 
Join Date: Jan 2009
Location: Your Imagination
Posts: 729
Blog Entries: 4
Thanks: 1
Thanked 27 Times in 26 Posts
CloudedVision has a spectacular aura aboutCloudedVision has a spectacular aura aboutCloudedVision has a spectacular aura about
Expertise: PHP
Experience: Professional
Default

Well, you could just have the refresh button submit the form, and then use PHP to make sure that rather than getting processed, the user is sent back to the page (with all the fields filled out, thats why it would be easier with a PHP framework)
CloudedVision is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 10th August 2009, 04:20 PM   #7
admin
 
saltedm8's Avatar
 
Join Date: Dec 2008
Location: Kent Uk
Posts: 1,595
Blog Entries: 6
Thanks: 15
Thanked 49 Times in 49 Posts
saltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond repute
Expertise: (X)HTML / CSS
Experience: Professional
Default

basically what i need is for the refresh to reload the page, without losing the form info.. but I seriously have no idea on how to do it.. my php is very very lacking
__________________
web design kent
saltedm8 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 10th August 2009, 04:49 PM   #8
supermod
 
CloudedVision's Avatar
 
Join Date: Jan 2009
Location: Your Imagination
Posts: 729
Blog Entries: 4
Thanks: 1
Thanked 27 Times in 26 Posts
CloudedVision has a spectacular aura aboutCloudedVision has a spectacular aura aboutCloudedVision has a spectacular aura about
Expertise: PHP
Experience: Professional
Thumbs up

Make all your form like this:

PHP Code:
<form name="myform" method="post" action="myfile.php">
<input type="text" name="blarg" value="<?php if(isset($_POST['blarg'])) { echo $_POST['blarg']; } ?>" />
<!-- Captcha stuff -->
<script type="text/javascript">
<!--
document.writeln('<a href="#" onclick="document.myform.submit(); return false;">Refresh Captcha</a>');
-->
</script>
<noscript>
<input type="submit" name="refresh" value="Refresh Captcha" />
</noscript>
<input type="submit" name="submit" value="Submit Form" />
</form>
You'll have to process the form at the top of the file with the form, like this:

PHP Code:
<?php
if(isset($_POST['submit'])) {  The downside to this is that users won't be able to 
//Do your form stuff
header('
Locationindex.php);
}
?>
That way the form will only be processed clicking the submit button and not the refresh button.

You'll notice the javascript after the captcha. That is so the refresh is a link rather than a button. The reason I did this was because having two submit buttons ruins the "click enter to submit" functionality of a form. But that relies on javascript, so I included a backup for no javascript that is a button.

Disclaimer: I have not tested any of this code, so I don't know if it'll work or not.
CloudedVision is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 10th August 2009, 06:11 PM   #9
Member
 
Join Date: Dec 2008
Location: Hatfield, UK
Posts: 170
Thanks: 1
Thanked 8 Times in 8 Posts
Jason is on a distinguished road
Expertise: PHP
Experience: Professional
Default

Is there any reason why you are not using JS to refresh the page? It makes far more sense than forcing a user to wait while a page reloads.
Jason is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 10th August 2009, 06:32 PM   #10
admin
 
saltedm8's Avatar
 
Join Date: Dec 2008
Location: Kent Uk
Posts: 1,595
Blog Entries: 6
Thanks: 15
Thanked 49 Times in 49 Posts
saltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond reputesaltedm8 has a reputation beyond repute
Expertise: (X)HTML / CSS
Experience: Professional
Default

it wouldn't take any time to reload, but the reason for no javascript is because of accessibility issues, where if someone has javascript disabled they wont be able to refresh it at all
__________________
web design kent
saltedm8 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Reply

Tags
captcha

Thread Tools
Display Modes