Hey everyone so recently my php page is doing weird/not working at all, I haven't had any trouble with it first, didn't make any major changes to it but somehow it stopped working now.
this is the php code I am using:
<html>
<head>
<title>Bedankt voor uw bericht...</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<script type="text/javascript">
setTimeout("window.close();", 3000);
</script>
<script src="[code.jquery.com];
</head>
<body>
<?php
$name = $_POST['name'];
$surname = $_POST['surname'];
$email = $_POST['email'];
$message = $_POST['message'];
$from = 'From: '$name + $surname;
$to = 'resetdesigners@gmail.com';
$subject = $_POST['subject'];
$body = "From: $name + $surname\n E-Mail: $email\n Message:\n $message";
?>
<?php
if ($_POST['submit']) {
if (mail ($to, $subject, $body, $from)) {
echo '<h1>Bedankt voor je email!</h1>';
} else {
echo '<h1>Probeer het opnieuw lul je hebt het niet goed ingevuld</h1>';
}
}
?>
</body>
</html>
and this is the specifying contact form:
<div class="contactform">
<form id="myForm" action="form.php" method="post" enctype="multipart/form-data" target="_blank">
<label></label>
<input class="apparte" name="name" required="required" placeholder="Uw voornaam..." id="naamvak">
<label></label>
<input class="apparte" name="email" type="email" required="required" placeholder="Bijv.: jouwemail@voorbeeld.nl">
<label></label>
<input class="apparte" name="subject" type="subject" required="required" placeholder="Bijv.: responsive site">
<label></label>
<textarea name="message" cols="20" rows="5" required="required" placeholder="Typ hier uw vraag..."></textarea>
<input id="cancel" name="cancel" type="reset" value="Opnieuw" />
<input id="submit" name="submit" type="submit" value="Verzenden">
</form>
</div>
So yeah it worked and all but now it just gives an error, this is the error...
[gyazo.com]
translation:
"This page on 15775.hosts.ma-cloud.nl isn't working."
"15775.hosts.ma-cloud.nl can't process this request at this moment."
This is a local host, but I also tried this on my own webhost but it just gave the same error.
this is the php code I am using:
<html>
<head>
<title>Bedankt voor uw bericht...</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<script type="text/javascript">
setTimeout("window.close();", 3000);
</script>
<script src="[code.jquery.com];
</head>
<body>
<?php
$name = $_POST['name'];
$surname = $_POST['surname'];
$email = $_POST['email'];
$message = $_POST['message'];
$from = 'From: '$name + $surname;
$to = 'resetdesigners@gmail.com';
$subject = $_POST['subject'];
$body = "From: $name + $surname\n E-Mail: $email\n Message:\n $message";
?>
<?php
if ($_POST['submit']) {
if (mail ($to, $subject, $body, $from)) {
echo '<h1>Bedankt voor je email!</h1>';
} else {
echo '<h1>Probeer het opnieuw lul je hebt het niet goed ingevuld</h1>';
}
}
?>
</body>
</html>
and this is the specifying contact form:
<div class="contactform">
<form id="myForm" action="form.php" method="post" enctype="multipart/form-data" target="_blank">
<label></label>
<input class="apparte" name="name" required="required" placeholder="Uw voornaam..." id="naamvak">
<label></label>
<input class="apparte" name="email" type="email" required="required" placeholder="Bijv.: jouwemail@voorbeeld.nl">
<label></label>
<input class="apparte" name="subject" type="subject" required="required" placeholder="Bijv.: responsive site">
<label></label>
<textarea name="message" cols="20" rows="5" required="required" placeholder="Typ hier uw vraag..."></textarea>
<input id="cancel" name="cancel" type="reset" value="Opnieuw" />
<input id="submit" name="submit" type="submit" value="Verzenden">
</form>
</div>
So yeah it worked and all but now it just gives an error, this is the error...
[gyazo.com]
translation:
"This page on 15775.hosts.ma-cloud.nl isn't working."
"15775.hosts.ma-cloud.nl can't process this request at this moment."
This is a local host, but I also tried this on my own webhost but it just gave the same error.