Jump to content

custom alert


fullyloaded

Recommended Posts

hi

is there anyway to change the alert popup box in my code to a simple custom one? i try to add one but had no luck i think it has to do with the if (confirm( but i could be wrong thanks...

 

<?php


$dbu=new mysql_db;

//*************************************************************************
    $sql = "SELECT * FROM chat_conver WHERE mem2_id='".$_SESSION[u_ID]."' AND active='1' AND invite_alert='1'  ";
    $dbu->query($sql);

    if($dbu->move_next())
{
	$cid=$dbu->f('chat_conver_id');
	$dbu->query("update chat_conver set
                             invite_alert='0'
                             where
                             chat_conver_id='".$cid."'"
                            );
?>
	<script language="javascript">
		if (confirm("A Member Has Invited You To Chat. Click Ok To View. ('Clicking Ok Will Not Accept The Chat Invite It Will Show You Who Has Invited You To Chat')")) window.open("http://www.mysite.com/", "NewWin","menubar=0,resizable=1,width=550,height=550,scrollbars=1");
</script>

Link to comment
https://forums.phpfreaks.com/topic/159337-custom-alert/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.