Javascript Redirect Question
Posted: Sun Dec 14, 2008 9:05 am
Hi, I have put a small php code on a website so that when I access the website, it will redirect me to a second website.
Why is this code not working?
Code: Select all
<?php
$site2 = "http://www.google.com";
echo "<body onload="javascript:frmClickTracking.submit();">";
echo "<form action="" . $site2 . "" method="post" name="frmClickTracking">";
echo "</form>";
?>
<body>
</body>
</html>