Hey guys. I'm getting the same error too. I am creating my first contact form with php. Here's what my code looks like currently below. The error comes from line 9. Hope anyone can help me with this because I am learning how to code websites from scratch using php.
Code:
<html>
<body>
<?php include '/www/zymichost.com/m/t/l/mtlproductions/htdocs/header.inc.php';?>
<?php include '/www/zymichost.com/m/t/l/mtlproductions/htdocs/menu.inc.php';?>
<?php if ($missing || $errors) { ?>
<p class="warning">You did not enter the required information. Please try again.</p>
<?php }; ?>
<?php
$errors();
$missing();
if ($isset($_POST['send'])) {
$to = 'tate.mikey@gmail.com';
$subject = 'New Feedback Received on MikeyTateLive Productions website';
}
$expected = array('name', 'email', 'comments');
$required = array('name', 'comments');
?>
<div id="wrapper">
<div id="maincontent">
<h2>I am here when you need me!</h2>
<p>Enter the information below and click send. Hope to hear back from you soon. =)</p>
<p>*=required</p>
</div>
</div>
<form id="feedback" method="get" action="">
<p>
<label for="name">*Name:</label></br>
<input name="name" id="name" type="text" class="formbox">
</p>
<p>
<label for="email">Email:</label></br>
<input name="email" id="email" type="text" class="formbox">
</p>
<p>
<label for="comments">*Comments:</label></br>
<textarea name="comments" id="comments" cols="60" rows="8"></textarea>
</p>
<p>
<input name="send" id="send" type="submit" value="Send"
</p>
</form>
<?php include '/www/zymichost.com/m/t/l/mtlproductions/htdocs/footer.inc.php';?>
<?php include '/www/zymichost.com/m/t/l/mtlproductions/htdocs/processmail.inc.php';?>
</body>
</html>
Bookmarks