For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > March 2004 > Re: [PHP-DB] passing a variable value of PHP into the alert of









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] passing a variable value of PHP into the alert of
Prabu Subroto

2004-03-30, 10:33 am

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: "Mikhail U. Petrov" <mikhail@begun.ru>
Date: Tue, 30 Mar 2004 17:35:33 +0400
To: "Prabu Subroto" <prabusubroto@operamail.com>,php-db@lists.php.net
Subject: Re: [PHP-DB] passing a variable value of PHP into the alert of JavaScript.

> 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
> "java script: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@begun.ru
>
> --
> PHP Database 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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com