Drezard Posted October 27, 2007 Share Posted October 27, 2007 Okay, this code doesnt work. When it redirects it doesnt add the /. It just goes installindex.php. CODE: (Whats wrong?) <html> <head> <script type="text/javascript"> function redirect(file) { window.location = file } </script> </head> <body> <script type="text/javascript"> redirect('install/index.php') </script> </body> </html> Thanks, Daniel Quote Link to comment https://forums.phpfreaks.com/topic/74965-redirecting-problems/ Share on other sites More sharing options...
PHP_PhREEEk Posted October 27, 2007 Share Posted October 27, 2007 There is a Javascript Help forum right below this forum...?? PhREEEk Quote Link to comment https://forums.phpfreaks.com/topic/74965-redirecting-problems/#findComment-379094 Share on other sites More sharing options...
kratsg Posted October 27, 2007 Share Posted October 27, 2007 Okay, this code doesnt work. When it redirects it doesnt add the /. It just goes installindex.php. CODE: (Whats wrong?) <html> <head> <script type="text/javascript"> function redirect(file) { window.location = file; } </script> </head> <body> <script type="text/javascript"> redirect('install\/index.php'); </script> </body> </html> Add semi-colons and probably escape the '/' (although I've never seen it happen before.) Quote Link to comment https://forums.phpfreaks.com/topic/74965-redirecting-problems/#findComment-379109 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.