Below codes are taken from the index.html of my site and i need to get this contact form working. I want it to have a recaptcha right next to the Submit button also. I tried many things and spend hours on this but im not good at php and i think i need a php file to send the emails. Can somebody help me out about this please? <div class="right"> <form action="" method="post"> <label><strong>Your Name</strong> (Required):</label> <input type="text" class="field" /> <label><strong>Your E-mail Address</strong> (Required):</label> <input type="text" class="field" /> <label><strong>Message</strong> (Required):</label> <textarea name="" class="field" rows="5" cols="10"></textarea> <a href="#" class="submit">Submit</a> </form> </div> <div class="cl"> </div> </div> Code (markup): I need to have the classes to keep the look right and need to add a recaptcha next to submit button.
First, your inputs doesn't have a name. In php, to get the value, the inputs need a unique name. For example, the first input <input type="text" class="field" /> i suppose is for the name. you need to add name='user'. It should look like this: <input type="text" class="field" name="user" /> Second, change to And then create a file called mypost.php and to get the field name "user" you add in mypost.php this: You'll need to make this changes for each input, to get the values. Sorry for my english. I'm not a native speaker.
Your english is no problem. Dont worry. But first of all i need recaptcha next to the submit button. secondly, Can you give me the entire code because i got confused on which file am i gonna edit and how am i gonna edit. I think i need a php file to get the email sent also. so i think it would be the most helpful if you give me the entire code so i can just copy and paste.
There is a lot of free captcha scripts, google is your friend. I can't make you one. There's nothing builtin to php, html or javascript for captcha. Then mypost.php It should work, i didn't tested the code. I don't want to be mean, but these things are very easy and if you don't know to make a simple contact form or to work with php variables, it's time to pay some "hungry" student to make it for you, or to post a project on freelance sites.
I got the form working right now. Thank you very much. I know there are many captcha scripts but as i said above, I would love to integrate the "Recaptcha" which is also google. But I dont know how. I already have public key and all those things and i couldnt find out how to add a recaptcha to a contact form. So that is what i needed the help for.