Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
45
rated 0 times [  46] [ 1]  / answers: 1 / hits: 162863  / 13 Years ago, sat, march 26, 2011, 12:00:00

.guys I have the following code:



echo (<SCRIPT LANGUAGE='JavaScript'>
window.alert('Succesfully Updated')
</SCRIPT>);


what i want to do is that when i click ok on the windows.alert the page will be redirected to a my edit.php.



or how is it possible to create a javascript which will execute an insert query.


More From » php

 Answers
24

Alert will block the program flow so you can just write the following.



echo (<script LANGUAGE='JavaScript'>
window.alert('Succesfully Updated');
window.location.href='http://someplace.com';
</script>);

[#93063] Thursday, March 24, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
makenatiffanic

Total Points: 412
Total Questions: 106
Total Answers: 90

Location: Marshall Islands
Member since Tue, Sep 21, 2021
3 Years ago
;