Re: Re: passing a variable value of PHP into the alert of JavaScript.
| From: | Prabu Subroto | Date: | Tue, 30 Mar 2004 14:18:09 +0000 |
| Subject: | Re: Re: passing a variable value of PHP into the alert of JavaScript. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-181816@lists.php.net to get a copy of this message | ||
Akh... thank you my friend.... It's solved.
May I ask another question?
Can I call a function of PHP code from HTML tag just the same as I call a function of JavaScript
from HTML tag?
I meant, Like this "<a Onclick='warning()'>CustID</a>";
----- Original Message -----
From: Jason Barnett <jasbarne@indiana.edu>
Date: Tue, 30 Mar 2004 08:32:38 -0500
To: php-general@lists.php.net
Subject: [PHP] Re: passing a variable value of PHP into the alert of JavaScript.
> Prabu Subroto wrote:
> > Dear my friends...
> >
> > I want to make an alert which can display a value from the database.
> > I am meaning :
> > how can I pass a value of a variable from PHP into JavaScript alert (
> > alert("$Firstname, $LastName and $Address");
> >
> > Is it possible?
>
> Sure. Probably the easiest way I can think to do it would be to create
> the JavaScript function as a string and insert your variables into that
> string. Then print() the string.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
_____________________________________________________________
Web-based SMS services available at http://www.operamail.com.
From your mailbox to local or overseas cell phones.
Powered by Outblaze