Hello everyone. i am a graphics guywith not much experience with web design, although i made this one all on my own.
i followed the tutorial from this site to apply a PHP contact form but for some reason the text is not showing up in the browser. http://www.jabridesign.com/Contact.htm
<form method=“POST” action=“mailer.php”>
<input type=“text” name=“name” size=“19”><br>
<br>
<input type=“text” name=“email” size=“19”><br>
<p>Please add any detailed information that may help with your inquiry.</p>
<textarea rows=“6” name=“message” cols=“30”></textarea>
<br>
<input type=“submit” value=“Submit” name=“submit”>
</form>
<?php
if(isset($_POST[‘submit’])) {
$to = "travis@jabridesign.com";
$subject = “Form Tutorial”;
$name_field = $_POST[‘name’];
$email_field = $_POST[‘email’];
$message = $_POST[‘message’];
$body = “From: $name_field
E-Mail: $email_field
Message:
$message”;
echo “Data has been submitted to $to!”;
mail($to, $subject, $body);
} else {
echo “blarg!”;
}
?>
i’ve uploaded both directories to my hostserver with no problems but i can’t seem to figure this out. any help?
travis