Modal JS into PHP

Guys can you Switch this js code from my modal into my PHP code. because i want to change alert into a MODAL

This is js code.

window.addEvent(“domready”, function(e){
/* Alert */
$(“alert”).addEvent(“click”, function(e){
e.stop();
var SM = new SimpleModal({“btn_ok”:“Alert button”});
SM.show({
“title”:“Alert Modal Title”,
“contents”:“Lorem ipsum dolor sit amet…”
});
})

});

and this code my PHP code. try to input my js code here.

			{echo "<script>alert('Request Sent');</script>";
echo "<script type='text/javascript'>window.parent.location='mainpage.php';</script>";

there is no modal in PHP. all PHP can do is output code that on the browser creates a modal (btw. an alert is a modal)

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.