PC Nerd Posted April 15, 2007 Share Posted April 15, 2007 <script language = 'JavaScript' type = 'text/javascript'> alert("Logged In !!!"); <?php echo "location.url = \"B_A-Login4a.php?Login_ID=".$Login['Login_ID']."&User_ID=".$DB_Login['User_ID']."&User_Name=".$DB_Login['User_Name']."\";"; ?> </script> thats my code....... can you see anything wrong with it. it comes up when i veiw it ( as in view source when php is executed) but it doesnt relocate user after the alert Link to comment https://forums.phpfreaks.com/topic/47073-solved-javascript-relocation-and-alert/ Share on other sites More sharing options...
Zeon Posted April 15, 2007 Share Posted April 15, 2007 instead of location.url try window.location Link to comment https://forums.phpfreaks.com/topic/47073-solved-javascript-relocation-and-alert/#findComment-229836 Share on other sites More sharing options...
PC Nerd Posted April 15, 2007 Author Share Posted April 15, 2007 thanks thats got it working Link to comment https://forums.phpfreaks.com/topic/47073-solved-javascript-relocation-and-alert/#findComment-229915 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.