Hi,
I have been trying for days to get a contact form to email data on a clients site. I am good with html and css but new to PHP so sorry if i see clueless. Watched numerous videos and read plenty of tutorials and other questions. The problem is as follows:
I have created the site here is a link to the test php page i created www.peoplespropertyshop.co.uk/test.php in this file i have the following:
<h1>Contact Form</h1>
<form action="thankyou.php" method="post">
Name <input type="text" name="fullname"><br>
Email <input type="text" name="email"><br>
Message <textarea name="message"></textarea><br>
<input type="submit" value="Submit">
</form>
</body>
</html>
then i have the below code from the thankyou.php:-
<?
$name = $GET_POST['fullname'];
$email = $GET_POST['email'];
$message = $GET_POST['message'];
$email_message = "
Name:".$name."
Email:".$email."
Message:".$message."
";
mail ( "
[email protected]" , "New Enquiry" , "$email_message");
header("Location: email_success.php");
?>
I also have the file named email_success.php.
All these files are live on the domain bought through 1 and 1 and is hosted for free by 000webhost whom do support php mail on there free accounts.
This is a simple form i have been using to practice as i was sick of taking the contact form from the actual site down. I have no testing server as the i am uploading via FTP to test the,.
Does anybody have any advice. As i say i am very new to php.
Thanks in advance