0

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

6
Contributors
11
Replies
12
Views
6 Years
Discussion Span
Last Post by rpv_sen
0

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.

0

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

0

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; ?>')"

0

onblur="alert('

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

0

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>';
0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.