Not using a form to send form data

Jens Törnell

To prevent spam I'm thinking of removing <form>and send the data from the input fields with AJAX instead.

On the PHP side I will probably use this to make it safer:

$clean = strip_tags($html, '<p><br>');

Any pitfalls?

milton cedeno

Myself I use ajax instead sometimes, the downside for me is that with ajax I have not been able to send files (e.g. images) at least without Jquery.

So, if you don't need to send files it is ok or at least I do so sometimes, although the reason you say: the spam, I don't get it

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Send form data using ajax

From Dev

Using Ajax to send form data to Django view

From Dev

send fixed data with a form

From Dev

How to send data to servlet using ajax without a submitting form

From Java

How to send a JSON object using html form data

From Dev

Send Form Data to Struts2 Action Class using Ajax

From Dev

Send form data from jsp to servlet using ajax

From Dev

Can't send file as form data using cURL

From Dev

Download Image and Send it to an API using multipart/form-data

From Dev

Send multipart/form-data files with angular using $http

From Dev

How do I send form data to server using angular?

From Dev

How to send form data in post request in iOS using MonoTouch?

From Dev

How to send and store data in an XML file, using an HTML form?

From Dev

AJAX Request Failed in form send data using php ajax

From Dev

How to send data from HTML form to Google Spreadsheet using JavaScript?

From Dev

How to send json serialize data from a form to ajax using django

From Dev

How do I send separate form data for replies using AJAX?

From Dev

Send form data to Javascript on submit

From Dev

send data form file with ajax

From Dev

Send form data to Javascript on submit

From Dev

Send Data from form to Database

From Dev

Send data form PageVC to Firebase

From Dev

What is the difference between attaching a listener to a button to send form data with AJAX and using a standard HTML form?

From Dev

Using FORM DATA with Alamofire

From Dev

Using parameters in form data?

From Dev

NativeScript Vue send request with form data (multipart/form-data)

From Dev

Send Form Using jQuery after form is generated using Ajax

From Dev

send feedback form to email id with data feed in the form

From Dev

Wordpress Send Form Data on Redirection in Contact Form 7

Related Related

  1. 1

    Send form data using ajax

  2. 2

    Using Ajax to send form data to Django view

  3. 3

    send fixed data with a form

  4. 4

    How to send data to servlet using ajax without a submitting form

  5. 5

    How to send a JSON object using html form data

  6. 6

    Send Form Data to Struts2 Action Class using Ajax

  7. 7

    Send form data from jsp to servlet using ajax

  8. 8

    Can't send file as form data using cURL

  9. 9

    Download Image and Send it to an API using multipart/form-data

  10. 10

    Send multipart/form-data files with angular using $http

  11. 11

    How do I send form data to server using angular?

  12. 12

    How to send form data in post request in iOS using MonoTouch?

  13. 13

    How to send and store data in an XML file, using an HTML form?

  14. 14

    AJAX Request Failed in form send data using php ajax

  15. 15

    How to send data from HTML form to Google Spreadsheet using JavaScript?

  16. 16

    How to send json serialize data from a form to ajax using django

  17. 17

    How do I send separate form data for replies using AJAX?

  18. 18

    Send form data to Javascript on submit

  19. 19

    send data form file with ajax

  20. 20

    Send form data to Javascript on submit

  21. 21

    Send Data from form to Database

  22. 22

    Send data form PageVC to Firebase

  23. 23

    What is the difference between attaching a listener to a button to send form data with AJAX and using a standard HTML form?

  24. 24

    Using FORM DATA with Alamofire

  25. 25

    Using parameters in form data?

  26. 26

    NativeScript Vue send request with form data (multipart/form-data)

  27. 27

    Send Form Using jQuery after form is generated using Ajax

  28. 28

    send feedback form to email id with data feed in the form

  29. 29

    Wordpress Send Form Data on Redirection in Contact Form 7

HotTag

Archive