|
||||||
| Website Design Forum for discussing flash, graphics, fonts, video and music! Have a question about how to implement something into your website? Ask here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||||
|
Now I implemented a new contact us page for my business directory.
FindItGlobally.com - Business Directory >> Contact Us Do you think that will stop spam bots? Users have to select finditglobally.com from the selection box instead of "I am a bot" do you think that will work? (Don't hesitate to full and send the email to test it.. just state you are from CodeCall) Thanks! |
| Sponsored Links |
|
|
|
|||||
|
Well it is definitely safer than not having it, but I don't think its more safe than the regular CAPTCHA.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
|
|||||
|
Well I'm not much into PHP.. So I dont know how to implement CAPTCHA.
EDIT: I used your example here: http://forum.codecall.net/php/1536-n...generator.html It's a fixed number as It's complicated to read the random number (with my knowledge and because I'm using template pages etc...) anyways if I start getting spam I just change the $string ![]() I think this is kinda better....I hope! Last edited by TcM; 01-10-2008 at 05:51 AM. |
| Sponsored Links |
|
|
|
|||||
|
Well with PHP you generate a random number, and then using PHP you print that number on an image. Each time the page is loaded, a random number is generated so the image *usually* never has the same value. You could store that random number in a session variable, then just make sure the value in the input text box is the same value as the session variable when the form is submitted.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
|
|||||
|
You have to register a session and assign the random number to a session variable. You need to use a session variable sense regular variables are destroyed once the page is refreshed, using a session, you can pass variables from page to page [similar to using a hidden form field, but safer]
To register a session and create a session variable read here: PHP: session_register - Manual
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Coding a change password form | InternetGeek | Visual Basic Programming | 11 | 02-16-2008 01:53 PM |
| the form doesn't show contact info | skiner | easyContact | 1 | 09-03-2007 09:36 AM |
| Problem with Contact Form | xXHalfSliceXx | PHP Forum | 9 | 10-16-2006 04:44 PM |
| Calling a form from another form | Void | Managed C++ | 1 | 07-01-2006 09:44 AM |
Goal: 100,000 Posts
Complete: 67%