-
Submit button script.
Evening,
I'm looking for a script that will collect the data from my form & send it to my email address.
Here is the form in question, http://www.theremotedoctor.co.uk/form-contact.html
Just using mail-to I think it will attract to much spam & not sure if it will even collect the data to send ?
Please could you advise.
Many thanks.
-
You can add captcha to it
Code:
<input type="captcha" name="code" />
https://github.com/bggo/TimeLine-Tas...ter/formidable
-
Captcha ?
First of all I need to collect the entered data ?
-
Did you add all of the php from that? The form collects all the info that you ask the person to fill out.
A form is made up in html and a PHP script that will handle the email sending, possibly Ajax too. Read this, it's good info https://bootstrapious.com/p/how-to-b...p-contact-form
Captcha is this http://www.captcha.net/
-
I didn't add anything yet.
I see many scripts but with forms.
I've a form in place so just need the php part of it I think.
This is where my brain lets me down & I end up messing up the page thus spending more time fixing it than just being able to carry out the php part of it.
-
You could always add a form that you create and just post somewhat simple code and leave the harder stuff to the form company.
https://www.jotform.com/ Go there and build the form, it's easy.
-
Ha ha
I'm leaving Jotform to use my own form.
-
OK then you have to use all of the files that go along with the contact form and edit the send mail php
-
Ok
Will check tomorrow.
Can you advise also once customer clicks on submit button how they are then directed to a specified HTML page just says thanks etc.
Thanks.
-
In PHP, a redirect is normally performed with the header() function, which goes after the form data processing part of the code.
http://php.net/manual/en/function.header.php