deville_debonair Posted October 10, 2007 Share Posted October 10, 2007 Umm..i have a problem with my project in PHP. How can i use the 'if(confirm(...))' condition of javascript in PHP, and then execute a set of PHP & SQL codes after confirming?? ??? Quote Link to comment https://forums.phpfreaks.com/topic/72602-php-javascriptifconfirm/ Share on other sites More sharing options...
trq Posted October 10, 2007 Share Posted October 10, 2007 Because javascript runs on the client while php on the server, you will need to make whatever action takes place within the if() make another request to the server to run the php script. Quote Link to comment https://forums.phpfreaks.com/topic/72602-php-javascriptifconfirm/#findComment-366089 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.