Re: passing a variable value of PHP into the alert of JavaScript.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!
I didn't exactly understood what you mean, but I think there're no
problems with it... You should echo these variables into html, for
example:

<html><boby> bla bla bla
function my_alert(name, lastname, address){
alert(name);
}
<?php
echo
"javascript:myalert(". $Firstname . "," . $Lastname . " and " . $Address . ")";
?>
bla bla bla


Hello Prabu,

Tuesday, March 30, 2004, 5:21:39 PM, you wrote:

PS> Dear my friends...

PS> I want to make an alert which can display a value from the database.
PS> I am meaning :
PS> how can I pass a value of a variable from PHP into JavaScript alert ( alert("$Firstname, $LastName and $Address");

PS> Is it possible?
PS> -- 
PS> _____________________________________________________________
PS> Web-based SMS services available at http://www.operamail.com.
PS> From your mailbox to local or overseas cell phones.

PS> Powered by Outblaze




-- 
Best regards,
 Mikhail                            mailto:mikhail@xxxxxxxx

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux