techiefreak05 Posted October 1, 2006 Share Posted October 1, 2006 I have iths code thats supposed to redirect from http://zycoworld.com/index.php?user=USERNAME ==>http://zycoworld.com/USERNAMEheres my index.php code::[code]<meta http-equiv="refresh" content="0;url=http://zycoworld.com/<?php $_GET['user'] ?>">[/code]it deosnt work. it just redirects to my zycoworld.com/index.php page Link to comment https://forums.phpfreaks.com/topic/22645-redirect-code-help/ Share on other sites More sharing options...
JasonLewis Posted October 1, 2006 Share Posted October 1, 2006 try this:[code]<meta http-equiv="refresh" content="0;url=http://zycoworld.com/<?php echo $_GET['user']; ?>">[/code]you didnt echo it. so its just a blank php code pretty much. Link to comment https://forums.phpfreaks.com/topic/22645-redirect-code-help/#findComment-101722 Share on other sites More sharing options...
Daniel0 Posted October 1, 2006 Share Posted October 1, 2006 [code]<?phpheader("Location: http://zycoworld.com/{$_GET['user']}");?>[/code]is better. Link to comment https://forums.phpfreaks.com/topic/22645-redirect-code-help/#findComment-101731 Share on other sites More sharing options...
JasonLewis Posted October 1, 2006 Share Posted October 1, 2006 only because it re-directs without loading the page first. depends what he wants, but that is better. Link to comment https://forums.phpfreaks.com/topic/22645-redirect-code-help/#findComment-101734 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.