954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Pop in php

Hi Friend

I need a alert msg display in php, without using javascript.

Pls help me to solve it

$pqty = $bdatam["sum(curr_qty)"];
$pamt = $bdatam["sum(curr_amount)"];
$btotal= $bgtqty+$pqty;


i want to display $btotal in alert msg display.

Pls help me

rpv_sen
Junior Poster
178 posts since Mar 2011
Reputation Points: 18
Solved Threads: 16
 

php cannot pop a box as alert boxes are js. You can certainly show areas of the page as a static box, which with CSS can be 'fixed' and 'z-indexed' to appear to float over the page. However, you'd still need js to get rid of the box otherwise you'd have to reload. My take anyway. If you want interactivity, you need js.

diafol
Rhod Gilbert Fan (ardav)
Moderator
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
 

Alert box is client side property, that can not be accessed via PHP.
Any reason why you don't want JS?

vibhaJ
Posting Shark
931 posts since Apr 2010
Reputation Points: 161
Solved Threads: 183
 

I haven't understand about PHP popup can anyone help in this.....

jack4321
Newbie Poster
17 posts since Mar 2011
Reputation Points: 7
Solved Threads: 5
 

Popups are js.

diafol
Rhod Gilbert Fan (ardav)
Moderator
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
 

Hi Friends

Sorry for the delay reply,

i have used the below code for my requirement onblur="alert('<?php echo "Budget Qty : ".$bgtqty; echo '\n\n'; echo $finaltext; ?>')"

rpv_sen
Junior Poster
178 posts since Mar 2011
Reputation Points: 18
Solved Threads: 16
 
onblur="alert('


Above is nothing but javascript. I think you want to say that, you do not want to use javascript function.

urtrivedi
Nearly a Posting Virtuoso
1,306 posts since Dec 2008
Reputation Points: 257
Solved Threads: 270
 

s, but temporary i used it

rpv_sen
Junior Poster
178 posts since Mar 2011
Reputation Points: 18
Solved Threads: 16
 

If you need pop up means JS is the best way. You can use Js within PHP as follows

$pqty = $bdatam["sum(curr_qty)"];
    $pamt = $bdatam["sum(curr_amount)"];
    $btotal= $bgtqty+$pqty;
    echo '<script>alert("Tota="'.$btotal.')</script>';
Karthik_pranas
Posting Pro
564 posts since Feb 2011
Reputation Points: 96
Solved Threads: 97
 

i have done it karthik

rpv_sen
Junior Poster
178 posts since Mar 2011
Reputation Points: 18
Solved Threads: 16
 

How did u? Can u please show your code?

Karthik_pranas
Posting Pro
564 posts since Feb 2011
Reputation Points: 96
Solved Threads: 97
 

s, but temporary i used it what i have post, but i am trying to get php alert, i dont know is it possible.

But lets try

rpv_sen
Junior Poster
178 posts since Mar 2011
Reputation Points: 18
Solved Threads: 16
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: