p.s. what would cause a headers already sent error when using
Code: Select all
header ("Location: $link");Moderator: General Moderators
Code: Select all
header ("Location: $link");Code: Select all
<script type="text/javascript">
<!--
function delayer(){
window.location = "http://www.example.com"// replace with your page or a variable.
}
//-->
</script>Code: Select all
<body onLoad="setTimeout('delayer()', 5000)">
<p><b>Thank you <br />your message:</b></p>
<p><br /><b>Has been sent from:</b><br />email@example.com</p>
<p> If your page does not redirect in 5 seconds
<a href="http://www.example.com">click here</a></p>Code: Select all
<?php
// Use $_GET if GET is specified in your form method.
if (isset($_POST['name']) && isset($_POST['email']) && isset($_POST['message'])) {
$name=$_POST['name'];
$email=$_POST['email'];
$message=$_POST['message'];
}
// More php code etc,..
?>