dimamed
#1
Good day.
I have two projects, but unfortunately feedback forms do not work for them.
https://sh-starlife.000webhostapp.com
https://finko.000webhostapp.com
I deleted the pages themselves and left only a feedback form.
But this unfortunately did not change anything.
Please help me figure it out.
dimamed
#3
Good day.
Can you help me with the solution of this question if I show the code?
teodor
#4
Create two files form.html
and process.php
. Then use these codes as a sample:
form.html
file:
<html>
<body>
<form action="process.php" method="POST">
<input name="email" type="email">
<input type="submit">
</form>
</body>
</html>
process.php
file
if(!empty($_POST['email']))
{
$to = "yourmailaddress@example.com";
$subject = "My subject";
$txt = $_POST['email'];
$headers = "From: webmaster@example.com" . "\r\n" .
"CC: somebodyelse@example.com";
mail($to,$subject,$txt,$headers);
}