Feedback form does not work

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.

Good day!

  1. Your form does not point to a submit page (action and method are missing)
  2. Your form process script does not contain mail functions according to W3 standard. Please make sure you include headers as well.
  3. Some javascript blocks from your code are broken (hit F12 and go to Console tab)
1 Like

Good day.

Can you help me with the solution of this question if I show the code?

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);
}