Simplest of web forms not working, lots of hints
My research shows that the problem is I am missing a (") or "}" or something similar. My php is not finding it, instead seeing the end of php (?>).
Triple checked everything, can't see anything missing. It is the simplest of forms you will ever see, might take you only a second to figure out what I can't. I would really apprecite if you take a glance at the codes and point me to a solution.
Here are the codes-
Web Form:
<form action="contact.php" method="post" id="contactform"> <ol> <li><label for="firstname">Name</label><br/> <input name="firstname" type="text" /></li><br/> <li><label for="email">Email</label><br/> <input name="email" type="text" /></li><br/> <li><label for="comment">Comment</label><br/> <textarea row="6" cols="50" name="comment"></textarea></li><br/> <input value="send" type="submit" /> </ol> </form>
PHP codes:
<html> <head> <title>this was a try</title> </head> <body> <?php $name = $_POST['firstname']; $email = $_POST['email']; $comment = $_POST['comment']; $to = 'myemail@yahoo.com'; $subject = 'test'; $msg = "$name sent you a message from $email and said $comment"; mail($to, $subject, $msg, 'From:' . $email); echo 'Thanks for you comment.<br/>'; echo 'Your message has been sent from' . $email . '<br/>'; echo 'We will get back to you with in 48 hours or less.'; ?> </body> </html>
The only difference is that I replaced "myemail@yahoo.com" with a real email adress
You can also check out the whole issue here- Web Design Questions: Simple web form not working
Thanks a lot guys for taking a look. Looking forward to your comments or thoughts on this.
Wordpress plugin development service for you!
Wordpress plugin development service for you!
Right Now. What a wonderful time to start!
Evan-M
Easily The Worlds Best Wordpress Popup plugin
Visit Website Design Firm For All Your Wordpress Coding Needs
The 2nd Amendment, 1789 - The Original Homeland Security.
Gun control means never having to say, "I missed you."
Evan-M
Easily The Worlds Best Wordpress Popup plugin
Visit Website Design Firm For All Your Wordpress Coding Needs
Are you using WordPress? Have you tried qSandbox yet?