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 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 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.) Link to comment https://forums.phpfreaks.com/topic/74965-redirecting-problems/#findComment-379109 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.