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
how to open confirm box in php
Moderator: General Moderators
Re: how to open confirm box in php
Hi raj86,
maybe you should try these 2 steps
1 - be sure that your javascript is working. Try it in a draft html file. if you become sure try step 2
2 - you may change your codification like below: (paste your working js exactly same. again if there is smthing wrong, you should suspect your php code)
maybe you should try these 2 steps
1 - be sure that your javascript is working. Try it in a draft html file. if you become sure try step 2
2 - you may change your codification like below: (paste your working js exactly same. again if there is smthing wrong, you should suspect your php code)
Code: Select all
$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.
[color=#FF0000][b]?>[/b][/color]
function popup()
<script language='javascript'>
function newPopup(url)
popupWindow = window.open('http://localhost/team-1/popup.php','popUpWindow',height=500,width=300,left=10,top=10)"
</script>[color=#FF0000][b]<?php[/b][/color]
}Re: how to open confirm box in php
This isn't PHP.
Re: how to open confirm box in php
Suggest that a hidden box is needed,u can use the "thickBox",i think it's impossible to open a confim box with php only,cuz php is a server based language,lol..jackpf wrote:This isn't PHP.