JakeSilver Posted June 18, 2008 Share Posted June 18, 2008 Hi there, I am looking to have a Java Script confirmation box one that says "Are you sure you what to delete this?" However i have nooo idea where to begin or how to include PHP into Javascript... Has anyone got an example of code that i can follow Many thanks Jake Link to comment https://forums.phpfreaks.com/topic/110752-javascript-pop-up-box/ Share on other sites More sharing options...
Vizor Posted June 18, 2008 Share Posted June 18, 2008 Third result from google. http://www.tizag.com/javascriptT/javascriptconfirm.php Javascript is client side and PHP is server side, you can't mix the two. You could use javascript to confirm whether a user wants to do something then if they do redirect to a PHP page that does whatever they wanted. Link to comment https://forums.phpfreaks.com/topic/110752-javascript-pop-up-box/#findComment-568206 Share on other sites More sharing options...
JakeSilver Posted June 18, 2008 Author Share Posted June 18, 2008 It is possible though isn't it because AJAX is the intergration of PHP into Java Script to make it active. Ive seen it done before on a few sites but i cant remember where it was. ive given up anyway im just going to redirect it to a new page... its alot easier Link to comment https://forums.phpfreaks.com/topic/110752-javascript-pop-up-box/#findComment-568207 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.