chownsy Posted August 13, 2012 Share Posted August 13, 2012 I have been using a contact form made from the website http://www.emailmeform.com/ and I think after making the rest of my site very very nice looking in my eye this is the only bit that detracts its value as the form sends you to a page advertising there product before back to my website. Is there a better form that can hide my email and have captcha on it to prevent spam? Link to comment Share on other sites More sharing options...
niche Posted August 13, 2012 Share Posted August 13, 2012 Will you be writing this code or do you want to re-use someone else's code? (Keep in mind the price you're paying right now to re-use someone's email script.) Link to comment Share on other sites More sharing options...
chownsy Posted August 13, 2012 Author Share Posted August 13, 2012 I would ideally like to use my own code as I have wrote a lot of this website from a blank notepad page, I had a look through the basic HTML code but cant see the way to submit data with out showing my email address (which is a private one) and also how to implement the captcha. Link to comment Share on other sites More sharing options...
niche Posted August 13, 2012 Share Posted August 13, 2012 Good answer, please post what you have so far that's relevant to this topic. I'm pretty sure we don't have to disclose your email. Link to comment Share on other sites More sharing options...
chownsy Posted August 13, 2012 Author Share Posted August 13, 2012 (edited) Its pitiful but here you go <form><Table border="1"><tr><td>Name: </td><td><input type="text" name="name" /><br /></td></tr> <tr><td>Email: </td><td><input type="text" name="email" /><br /></td></tr> <tr><td>Subject: </td><td><input type="text" name="subject" /><br /></td></tr> <tr><td>Message: </td><td><input type="text" name="message" /><br /></td></tr></table> <input type="submit" /> </form> I need to CSS format it still, Need to make the submit button work and then display a message I need to make the message area larger. EDIT: If i dont reply tonight Im now out at a Royal British Legion meeting. Edited August 13, 2012 by chownsy Link to comment Share on other sites More sharing options...
niche Posted August 13, 2012 Share Posted August 13, 2012 (edited) Take-out all the reference to tables (they're not needed) and get an action and a method in your form tag. Then post the beginning of your php please (I'd start it with a echo var_dump($_POST). EDIT: Also, don't worry about the css for now. Edited August 13, 2012 by niche Link to comment Share on other sites More sharing options...
chownsy Posted August 13, 2012 Author Share Posted August 13, 2012 Im reading up on PHP tutorials now as HTML and CSS is all I have learnt so far. It may be a day or 2 before the PHP file is done. Link to comment Share on other sites More sharing options...
niche Posted August 13, 2012 Share Posted August 13, 2012 (edited) OK, but I think you'll find the making the data flow is a bigger deal than the the css or html especially if you put some of the data in a table (assuming these areas aren't your strengths). Plus you'll need to screen your data to avoid hacks and attacks. Edited August 13, 2012 by niche Link to comment Share on other sites More sharing options...
chownsy Posted August 13, 2012 Author Share Posted August 13, 2012 My strengths seem to be picking things up fast (e.g someone gives me a page of code i can take it apart finding what each part does) PHP and JS i have never understood so its going to be a good learning curve for me now. Link to comment Share on other sites More sharing options...
niche Posted August 13, 2012 Share Posted August 13, 2012 (edited) The most important thing you need to learn scripting a language quickly is a meaningful purpose. The second most important thing you need to learn php is a web server or localhost. Edited August 13, 2012 by niche Link to comment Share on other sites More sharing options...
chownsy Posted August 13, 2012 Author Share Posted August 13, 2012 you say web server, do you mean a host? Link to comment Share on other sites More sharing options...
niche Posted August 13, 2012 Share Posted August 13, 2012 You are correct. Link to comment Share on other sites More sharing options...
chownsy Posted August 13, 2012 Author Share Posted August 13, 2012 Does PHP need a server no matter what it is doing? The contact form is not going to be going to a database, just sending an email to my email which then I can respond to if needed I just dont want my email address spammed if i was to put it straight onto the site. Link to comment Share on other sites More sharing options...
niche Posted August 13, 2012 Share Posted August 13, 2012 Yes, but you can use this localhost and it's free http://www.wampserver.com/en/ It's the one I use. Link to comment Share on other sites More sharing options...
knystrom18 Posted August 13, 2012 Share Posted August 13, 2012 Formmail: http://www.tectite.com/ Link to comment Share on other sites More sharing options...
chownsy Posted August 14, 2012 Author Share Posted August 14, 2012 (edited) thanks niche for that link, Installed it and now job for this weekend is to read the PHP tutorial, make a form I think is decent, test it, post here to get criticism and help and then celebrate a good achievement. If i fail then I have coaxsist link to fall back on. thank you again for a prod in the right direction. EDIT: If i am writing the code myself, do I have to download PHP from http://www.php.net/ Edited August 14, 2012 by chownsy Link to comment Share on other sites More sharing options...
birbal Posted August 15, 2012 Share Posted August 15, 2012 yes you need to install php as well as a webserver like apache. best will be if you install package LAMP,MAMP,WAMPfor linux,mac,wins or XAMPP Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now