L
L
LB7772014-11-10 20:10:47
Landing pages
LB777, 2014-11-10 20:10:47

How to make a landing page contact form in php?

I am making a landing without cms, just html+js+css, but the landing should have a feedback form and send a message to the mail.
How, from the point of view of security, is it correct to make a form for sending messages from the site to the mail?
By security, I mean not captcha, but anti-spam from my domain (the use of a script by attackers to send mail).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Frank, 2014-11-11
@Akellacom

If I understood you correctly, then:
1. Use jquery validation, for example jqueryvalidation.org
2. Make a hidden field in the form, for example, with the name name, lastname, firstname, which bots usually fill out.
3. In the php script, we check whether the hidden fields are filled in, if yes, then this is a bot, if not, then we send the letter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question