Add the Captcha (or something better) in a form

Hi all

I am trying to add some sort of "Butcher of bot" on my page where I have a form that sends data to a database (not an email or another php file).

It works like this:

-L' user insert name, surname, email and comment

-Press the 'Send' user and the data goes to my database, using the CS6 "Insert record" Dreamweaver Server behavior

In 2 days I received more than 200 messages from spammers and so I need something to stop it. I checked reCaptcha and other free PHP scripts, but nothing works.

So I found something interesting, if it works, but I don't know how to implement: a hidden field that see bots, but humans cannot, when that field if it is filled, the button does not work (it is still possible?).

My form code is this:

My PHP page form element

< form id = "GBForm" name = "GBForm" method = "POST" action = "<?" PHP echo $editFormAction;? > ">"

< table width = "844" border = "0" cellspacing = "0" cellpadding = "0" >

< b >

< td width = "189" height = "32" scope = "row" > < table >

< th width = "233" align = "left" scope = "row" > Nome: < /th >

< td width = "260" scope = "row" > < label >

< input name = "GBnome" type = "text" id = "GBnome" size = "50" maxlength = "50" / >

< / label > < table >

< td width = "162" > < table >

< /tr >

< b >

< td height = "33" scope = "row" > < table >

< th align = "left" scope = "row" > last name: < /th >

< scope = "row" td > < label >

< input name = "GBcognome" type = "text" id = "GBcognome" size = "50" maxlength = "50" / >

< / label > < table >

< td > < table >

< /tr >

< b >

< td height = "34" scope = "row" > < table >

< th align = "left" scope = "row" > Email: < /th >

< scope = "row" td > < label >

< input name = "GBemail" type = "text" id = "GBemail" size = "50" maxlength = "50" / >

< / label > < table >

< td > < table >

< /tr >

< b >

< scope = "row" td > < table >

< th align = "left" valign = "top" scope = "row" > comment: < /th >

< scope = "row" td > < label >

< name textarea = "GBcommento" id = "GBcommento" cols = "50" rows = "8" > < / textarea >

< / label > < table >

< td > < table >

< /tr >

< b >

< td height = "51" scope = "row" > < table >

< th align = "left" valign = "top" scope = "row" > < /th >

< scope = "row" td > < input name = "GBinvia" type = 'submit' class = "PulsanteInvia" id = "GBinvia" value = "Invia dati" / >

< input type = "reset" name = "GBreset" id = "GBreset" value = "dati like" / > < table >

< td > < table >

< /tr >

< /table >

"< class p ="TestoFormGB"> < a href ="... / guestbook.php "> Oppure view it < /a > < /p > the guest book"

< class p = "TestoFormGB" > < / p >

< input type = "hidden" name = "MM_insert" value = "GBForm" / >

< / make >

So, if it is possilble, how to implement this hidden field and make it work with my button?

Thank you.

It is known as a honeypot form field. I just had a customer say that they got even a few emails after its implementation. Here the other users of the forum have had very good results using the honeypot spam solution.

You would incorporate a 'hidden' form field in your form:

Set it to display: none; using the css:

Then modify the DW insert server behavior code (your code will have different values, but you should be able to find the right location to insert the code in red below from the lines below):

If ((isset($_POST["MM_insert"])) & ($_POST ["MM_insert"] == "sign_up")) {}

$spamCheck = trim($_POST['ufo']);

If (! empty ($spamCheck)) {}

"exit";

}

$insertSQL = sprintf ("INSERT INTO members (user name, password, email) VALUES (%s, %s, %s)',

If the hidden field is filled in by a bot the script insert stops - whatever it be entered in the form fields fails to get passed to the database.

Tags: Dreamweaver

Similar Questions

  • Is it possible to add the car rental search field in a form?

    Hello

    was wondering if its possible to add a field of automatic search form and also receive the location of the person who submits the form with the form.

    Memo

    Hey Memo,

    Muse only currently allow you to add text single line, multi-line text box, but there is no way to add the geolocation Muse online form option. You can try this

    HTML5 geolocation

    I hope this helps.

  • Is it possible to add the graph to dynamic sectors on PDF form

    Hello

    I am trying to create a named PDF form calculation. This form made several calculations. I need pie plot/draw/create based on the data entered on the form.

    Is it possible using Adobe LiveCycle Designer?

    How can I do this task?

    Thanks in advance.

    Thank you

    Victor

    Hello

    I don't know if a pie chart is possible (or feasible without a lot of blood, sweat and tears).

    We got a graphic work of column based on the blog and the example of John Brinkman here.

    Radzmar Acrobat user group forums was also a PDF form with several types of charts (but not a pie chart). Have a look here.

    I suspect that if it is reasonable to the front to draw lines and rectangles - drawing segments in a circle are going to be very difficult.

    Maybe another tool such as Xcelsius and Flex work better.

    Good luck

    Niall

  • I want to add the new compensation method (map), problem - no form for the three digit code

    Hello.
    My old card VISA ended 07/31/2016 and I have again a wih the same number, but the diiferent expiration date + three digit code
    Problem is that I can't write only card number and expiration date, but I do not see the form of this code, I need to change, because it is not the same as on the old map.
    Can you help me?

    tz2s.jpg

    Contact support - for the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone...

    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html ( http://adobe.ly/19llvMN )

  • Unable to add the virtual machine network services

    Hello:

    I already read that warning Virtual PC 2007 is not compatible with win 7-64.
    However, I read that it is "unofficially" possible launch.
    OK, I installed it and it worked except networking.
    Basically, I need to install the Virtual Machine Network Services.
    I right click on my network card-> properties-> install-> services-> virtual machine network services (VPC2007 folder: where I can see VMNetSrv.inf)
    Then says Windows: it is impossible to add the requested feature. The specified service has been marked for deletion.

    The problem is that I get this error even on WinXP SP3, so I think that there is something else wrong.

    And of course, Virtual PC 2007 available networks are only: no connection, Local, NAT.  (Missing my physical adapter)

    Thank you!!!

    Hello

    The question you posted would be better suited to the TechNet community. Please visit the link below to find a community that will provide the support you want.

    Hope this information is useful.

  • An alternative to the Captcha security code?

    I wonder if there is a great alternative to the graphic Captcha security code. I work with DW8 (8.0.2) on a Mac (PowerPC G4 or Intel Duo system processors).

    I'd like some URL links to either of these alternatives to continue my research and testing and assessments. Thanks in advance, DWD

    On October 19, 2006 at macromedia.dreamweaver.appdev, deaf Web Designer
    wrote:

    > I wonder if there is a great alternative to the Captcha
    > chart cryptogram.

    N °

    > I'm working with DW8 (8.0.2) on a Mac (PowerPC G4 or Intel
    (> Duo system).

    Is not serious.

    > I would appreciate some URL links to one of these alternatives of
    > continue my research and testing and assessments.

    My views on my first answer: a CAPTCHA is a acceptable but not-very -.
    good alternative to solve a problem of crises. The writeup at
    Wikipedia is good:

    http://en.Wikipedia.org/wiki/Captcha

    I heard about some alternatives:
    -For the moment, the bots do not understand javascript or
    sessions/cookies. So, you can:
    -Start a session. As long as your (probably human) visitor
    cookies enabled (most seem to), you can set a session variable and
    Check for that on the form processing page.
    -Set a cookie. Comparable to the definition of a session. With both, you run the
    low risk of losing messages due to visitors to the site with cookies to close
    offshore.
    -Write a hidden using javascript (external) field. There is a risk
    visitors with js turned off.
    -Add a drop-down list saying something like 'I'm not a bot:

    Then in your form processing script, check that okayToSend has the value
    "it doesn't matter".

    --
    Joe Makowiec
    http://Makowiec.NET/
    E-mail: http://makowiec.net/email.php

  • Song on the part of iTunes adds the song twice

    Anyone else seeing this?

    When I share a song iTunes of logic, it adds the song twice in my iTunes library.

    In addition, even if I do not have a field of empty playlist it automatically adds a playlist of logic.

    10.11.6 OSX

    10.2.4 logic

    Something in the logical user preferences was the origin of the problem. Apple has helped my reset my preferences and all is good.

  • Cannot add the Google account

    I am trying to add my Google account to synchronize contacts and calendars on my Mac. When I go to Internet accounts and add the Google account, I am stuck in the login screens. I entered the code sent a text message to my phone because I have 2 factor auth enabled, and I check the Contacts and calendars:

    When I click on done, disables the button and nothing happens:

    Any ideas on how to solve the problems? I don't know if there is a problem with the factor 2 auth or something else.

    Thank you

    Zach

    Accounts Internet does not not on the password for google accounts

  • Add the road to print via Ethernet

    OK, here is therefore the relevant parts of my network:

    EN1 (wireless) ---> router (vlan1) ---> personal printer

    MacBook

    en0 (ethernet) ---> router (VLAN 2) ---> work printer

    I have a router with two VLANs. Each part of the VLAN has a printer. My two en0 en1 ip addresses are 10.1.1.x

    For now, if I want to print on my printer 'House,' its fine. But if I want to print my 'printer work', I must go to system_prefs > network and "set the order of service" to give priority to ethernet (or pass location... I'd rather 'work').

    I think I need to add a route or something to tell him to contact 'the printer work' ip via en0... (tried in the terminal: "Route of the man", but couldn't get my head around it).

    Can someone tell me what is the command?

    And also, how I would remove the road if I need for later?

    So... does anyone know?

    Is the question clear enough?

  • Watch does not recognize the weight class as exercise-how can you add the duration of activity manually because none of the presets eg elliptical etc. is appropriate. Also does not count calories for example 35 when the rest of the group is around 500

    Look does not recognize the weight class as exercise-how can you add the duration of activity manually because none of the presets etc for example elliptical is appropriate and therefore do not count toward the daily goal. Also does not count calories for example 35 when the average of the others in the group is around 500.

    Hello

    When you use the application of the training session, choose the type of activity that best fits your business. For anything else - like weight - select the other category.

    During the follow-up of one year to the next helps:

    • Activity app will credit the ring of progress of exercise with one minute for every minute of the workout.
    • Active calories will be based on the data recorded by the heart rate sensor or a brisk walk, whichever is greater.

    Note, however, that the heart rate sensor is likely to give better results for the workouts that involve rhythmic (for example running) rather than the irregular movements.

    More information:

    Use of the workout on your Apple Watch - Apple Support

  • Using script - library locked when you try to add the file to it

    Hello

    I'm just a simple script that I can run with my engines of the action, so if I add new enum values I can create new wrappers quickly. I am able to create a new VI on disk, but when I try to add the the VI to the library, I get "error 1562: library, or the specified project is locked." Just before adding the article, I tried to adjust the State of the library "Not locked", but has not been the tower.

    Directions to see the error:

    Open attached zip file

    Open 'Engine.lvlib Action '.

    Run "Script - Create Wrapper.vi.

    Please let me know how to get around this, I thank you,

    Gregory

    There are two reasons at least a library locks: 1) something he possesses is running, 2) is open in two or more instances of the application.  (This applies to classes too.)

    I started a project and took your scripts out of the library (to avoid the #1) and then open your Library Reference by path in your script, be sure to include the reference of the application (to avoid the #2).

    Works now.  (With the exception of the Init.vi but you mentioned earlier that you knew about it. But point 1 and 2 of article work fine.)

  • flatten channel adds the length of the string

    Hi all

    I flatten a cluster chain help to flatten to string.vi. The cluster contains strings and arrays. The flattened string contains the length of the string that is appended to the string.

    So if I have a cluster with only 1 string and a value = "LabVIEW". the flattened string would be "0007LabVIEW". Flatten channel vi has a Boolean entry "add string or array of size? even if I set the Boolean value false, it always adds the length of the string. Is this a bug?

    I think that if you read the detailed help to flatten it to string function you will see this is not a bug.  That boolean applies only to top-level data, once put you something in a cluster or array, the Paris are open.

  • MathScript adds the row of table

    Hello LabVIEWers,

    I recently encountered a problem using the MathScript that I don't understand.  When I create a simple table of dimension 1 and then access a single element in this array, MathScript and/or LabVIEW adds an extra line in this table.  This problem appears when I add the output for the MathScript structure array and create an indicator.  A VI sample that illustrates the problem I encounter is attached.  I have also run the same code MathScript in MatLab and the issue does not seem to occur.  Is there something that I am missing? Perhaps a logical reason and explantion for why LabVIEW for this?  I searched on the web, help and forums so far.  Any help is appreciated.

    My goal is to be able to access the items in a table without changing the dimensions of the table, or to manually remove the added row.

    Kind regards

    Doug

    Hello Doug77,

    In the line where you replace the 5th element of the array, if you say public (5) = 77, LabVIEW will not add the extra line. Almost everything in Mathscript if defined as a matrix. That's why you see size as 1.11. If you try to manipulate the public in the form of a 2D picture, saying test_array (1,5), mathscript guess it must be a 2D array.

    Let me know if it helps.

  • If I create a WinPE 2.0 distribution (Syslinux or PXElinux) which will take place on one of the machines running 'something Microsoft' what are the implications of license?

    The WinPE Licensing implications

    Hello

    I have a number of customers with machines that are fully licensed with XP, XPe or Vista.
    Each of these clients have a device that we have created, piloted by drivers custom within the OS.  The operating system will sometimes funny (corruption, etc.) causing the device to not function.
    I decided to create a diagnostic utility to check whether the fault is in the operating system, driver or device.  Because the fault could be deep in the operating system, the only way I can see to do is through WinPE
    I searched the net, but can do not seem to arrive at an acceptable legitimate answer... So here's my question.
    If I create a WinPE 2.0 distribution, either for CD, USB or chain loaded from Linux (Syslinux or PXElinux) which will take place on one of the machines running 'something Microsoft' what are the implications of license? Is it legal?
    Operating system licenses are not owned by us, but our customers if we do not have mass of licensing agreements or something like that.
    The plan is to create a unique distribution and add drivers to it that we encounter different machines.  I know it's frowned upon to speak Hirens on a MS site, but something similar to that (I won't use Hirens because I want that it is completely legitimate)
    I called him to the reading of the license with WAIK, but can do not seem to find anything about this.
    Thank you

    Hello

    This is not a question of normal consumption. I suggest you to contact our Legal Department for legal terms Express. http://www.Microsoft.com/about/legal/en/us/default.aspx

    I also suggest that you send your query in TechNet and check.

    http://social.technet.Microsoft.com/forums/en-us/operationsmanagergeneral/threads

  • Member not found error when trying to add the generic script in the windows 2003 cluster

    I tried to add a generic script in the cluster windows 2003, I've already done a script with the extension .vbs, but when I tried to add the path of the script file its gives me an error indicating that the Member could not be found. Can you help me about this error?

    Hello ishuvbaidhya,

    Your question may be the best answer in the forum TechNet for Windows Server.

    Please transfer your question in forum Windows Server below.
    http://social.technet.Microsoft.com/forums/en-us/winserverManagement/threads

    They will be better able to help with your problem.

    Sincerely,

    Marilyn

Maybe you are looking for

  • Can't use touchpad on my new Satellite L500

    brand new L500, downloaded a few programs, all of a sudden, cant use the touch pad at allI can't use an external mouse no probThank you

  • To access the details of item Type Palette of LabVIEW?

    Greetings! I'm trying to get a list of all items in a specific type of LabVIEW palette member and have no chance. I can get the list of the names of all items in the type of all the members of the palette, but that's just more work for me. What I wou

  • Problema sown

    Problema en USUARIO-PC respond to problems found: minipuerto virtual Microsoft tiene WiFi useful a problema con el driver

  • my 80 G9 Tablet ARCHOS froze me and I can't connect to internet or anything

    a turn it off to put 3g stick and then turn it on and it froze and won't let me do anything or you connect on my emails

  • Easy transfer problems

    I used easy transfer to copy files from my old computer to an external hard drive. When I try to use easy transfer install files on my new computer, an error message says that there is not enough disk space. File is only 37 GB. Free space on C: is mo