D
Deleted member 5665
I suck at PHP sorry. 🙁 I am totally new to it and I just need some help. I need to get my contact page to send me messages, etc. From people who reports bugs, so on.
Link: http://topicflix.com/contact-us.php
I tried this:
But it didn't work it sends me the email but it when someone puts a message it does not send that message. Here is my contact-us.php page codes.
So can someone give me a PHP code or a small tutorial that could help me fix this and stuff. 🙂
Link: http://topicflix.com/contact-us.php
I tried this:
Code:
<?php
$to = "[email protected]";
$subject = "Bug or Help";
$message = "Message goes here.";
$from = "[email protected]";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
But it didn't work it sends me the email but it when someone puts a message it does not send that message. Here is my contact-us.php page codes.
Code:
</head>
<body id="page5">
<div class="tail-top">
<div class="tail-bottom">
<div id="main">
<!-- HEADER -->
<div id="header">
<div class="row-1">
<div class="fleft"><a href="index.php">Topic <span>Flix</span></a></div>
<ul>
<li><a href="index.php"><img src="images/icon1.gif" alt="" /></a></li>
<li><a href="contact-us.php"><img src="images/icon2-act.gif" alt="" /></a></li>
</ul>
</div>
<div class="row-2">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="forum">Forum</a></li>
<li><a href="videos.php">Videos</a></li>
<li><a href="contact-us.php" class="active">Contacts</a></li>
</ul>
</div>
</div>
<!-- CONTENT -->
<div id="content"><div class="inner_copy">More <a href="http://www.templatemonster.com/">Website Templates</a> at TemplateMonster.com!</div>
<div class="line-hor"></div>
<div class="box">
<div class="border-right">
<div class="border-left">
<div class="inner">
<div class="content">
<?php
$to = "[email protected]";
$subject = "Bug or Help";
$message = "Message goes here.";
$from = "[email protected]";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
<h3>Contact <span>Form</span></h3>
<form id="contacts-form" action="">
<fieldset>
<div class="field"><label>Your Name:</label><input type="text" value=""/></div>
<div class="field"><label>Your E-mail:</label><input type="text" value=""/></div>
<div class="field"><label>Your Website:</label><input type="text" value=""/></div>
<div class="field"><label>Your Message:</label><textarea cols="1" rows="1"></textarea></div>
<div class="wrapper">
<a href="#" class="link2" onclick="document.getElementById('contacts-form').submit()">
<span>
<span>Send Your Message</span>
</span>
</a>
</div>
</fieldset>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- FOOTER -->
<div id="footer">
<div class="left">
<div class="right">
<div class="inside">Copyright - TopicFlix<br />
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript"> Cufon.now(); </script>
</body>
</html>
So can someone give me a PHP code or a small tutorial that could help me fix this and stuff. 🙂







