Hi, The form appears fine on my site but when I click submit it doesn't actually submit any info, doesn't seem to do anything. This is the code on my HTML page of the site: I have a PHP file (contact.php) which contains this code: Any idea why the button isn't working? Thanks for any help
Technically, you don't really have a form to work with here. What you have is a table with the fields you want but not a form with a method. Look at this tutorial, it will walk you through how to create a simple contact form: http://www.kirupa.com/web/php_contact_form.htm
Thanks einsteinsboi, got that working but just wondered, instead of it showing "Data has been submitted to !" is it possible to just redirect to a different page? Just don't really want to display that page if possible, seems a bit pointless. This is the code: Thanks for any more help
Not sure about this, but I think you can redirect it back to another page by using the header() function. Try adding this line at the end of your form submission in place of your echo statement: header("location:thepageyouwant.php"); PHP: thepageyouwant.php is the filename of the page you want to redirect the user to after they submit the form. Hope that helps.
Glad to help. Make sure to do some reading on validation because you want to sanitize the information entered into your form inputs to prevent attacks. You can just Google it and you'll get lots of information. Good luck!