Header Location Issue

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

I used the meta refresh for a while, but I wanted to make it seemless for the user, which the header: location does.

I have this code as a fallback

Code: Select all

echo "<table width=730 style='border: solid 1px #000000' cellspacing=0 cellpadding=3 align=center>";
 		echo "<tr>";
		echo "<td align=center bgcolor=$color2 style='border: solid 1px #000000'><B>Your Reply Has Been Submitted</B>";
			echo "</td>";
 		echo "</tr>";
 		echo "<tr>";
 			echo "<td align=center bgcolor=$color3 style='border: solid 1px #000000'><p>Your reply has been submitted.<BR>";
 			echo "You will be automatically redirected to your post in 1 second.</p>";
 			echo "<p>If you are not redirected, or you do not wish to wait, click the link below.</p>";
 			echo "<p><a href=showthread.php?threadid=$threadid&page=$page><u>Go To Your Post</u></p>";
 		echo "</td>";
 		echo "</tr>";
 	echo "</table>";
So, if in any case the re-location should fail, the link will be provided.
Post Reply