PHP, HTML, and Javascript Redirect Help
Previously I had:
<?php $thankspage = $_POST['redirect']; header("location: $thankspage"); ?>
<?php $thankspage = $_POST['redirect']; include($_SERVER['DOCUMENT_ROOT'].'/inc/body-bottom.php'); header("location: $thankspage"); ?>
<?php $thankspage = $_POST['redirect']; ?> <html> <head> <meta http-equiv="refresh" content="0;url=<?php echo $thankspage ?>"> </head> <body> <?php include($_SERVER['DOCUMENT_ROOT'].'/inc/body-bottom.php'); ?> </body> </html>
<?php $thankspage = $_POST['redirect']; ?> <html> <body onLoad="submit_form();"> <form name="myform" action="<?php echo $thankspage ?>" method="POST"> <p>Redirecting. If not, please <a href="javascript:document.myform.submit();">click here</a>.</p> </form> <?php include($_SERVER['DOCUMENT_ROOT'].'/inc/body-bottom.php'); ?> </body> </html>
1) Would the body-bottom.php get loaded in both the meta and javascript redirect?
2) Is there some way to use the php redirect and include the Analytics file? I really like the php header redirect because you don't see the page load - creating a smoother (and seemingly safer) user experience.
-
PHIMind -
Thanks
{{ DiscussionBoard.errors[3198105].message }} -
-
Brandon Tanner -
Thanks - 1 reply
Signature{{ DiscussionBoard.errors[3198222].message }}-
Joshua Uebergang -
Thanks
{{ DiscussionBoard.errors[3198314].message }} -
-
-
webpro4hire -
Thanks
{{ DiscussionBoard.errors[3198589].message }} -
-
AlexanderC -
Thanks - 1 reply
{{ DiscussionBoard.errors[3199141].message }}-
Joshua Uebergang -
Thanks
{{ DiscussionBoard.errors[3201834].message }} -
-
-
indianbill007 -
Thanks
{{ DiscussionBoard.errors[3204015].message }} -