how to open confirm box in php
Posted: Tue Sep 29, 2009 12:29 am
Hello friends
i want to geneate a popup / confirm box when all the data are inserted in the data base
like :
$query= insert into......
$result = mysql_query($query) or die ("Error in query: $query");
if($result)
{
//Here i want to code such a way that it should show a confirm box having OK/CANCEL options
i.e confirm ("Are the entries correct.");
for that i am using below code but its not working....can anyone tell me how to show a confrim box or a popup.
echo "function popup(){";
echo "<script language='javascript' >";
echo "function newPopup(url) {";
echo "popupWindow = window.open('http://localhost/team-1/popup.php','pop ... =10,top=10)";
echo "}";
echo "</script>";
}
thank you
i want to geneate a popup / confirm box when all the data are inserted in the data base
like :
$query= insert into......
$result = mysql_query($query) or die ("Error in query: $query");
if($result)
{
//Here i want to code such a way that it should show a confirm box having OK/CANCEL options
i.e confirm ("Are the entries correct.");
for that i am using below code but its not working....can anyone tell me how to show a confrim box or a popup.
echo "function popup(){";
echo "<script language='javascript' >";
echo "function newPopup(url) {";
echo "popupWindow = window.open('http://localhost/team-1/popup.php','pop ... =10,top=10)";
echo "}";
echo "</script>";
}
thank you