Re: [PHP] javascript and php again

2002-11-13 Thread Marek Kilimajer
php doesn't understand javascript, php executes on the server and 
javascript on the client side.

Edward Peloke wrote:

I have some javascript that by itself, runs fine in a php file but, when I
enclose it in php...

?
if (!variable)
{
?

---insert java here

?
}
?

Then is does not work...is there a trick to this?  Can this not be done?

Thanks,
Eddie


 



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




RE: [PHP] javascript and php again

2002-11-13 Thread Edward Peloke
so there is no way to use javascript and php together?  If not, can php do
some of the cool things that javascript does?  The main thing I am looking
for is a somthing like this:

http://www.dynamicdrive.com/dynamicindex1/popit.htm  but I want the options
built from the db by mysql.

Thanks,
Eddie

-Original Message-
From: Marek Kilimajer [mailto:kilimajer;webglobe.sk]
Sent: Wednesday, November 13, 2002 2:43 PM
To: PHP
Subject: Re: [PHP] javascript and php again


php doesn't understand javascript, php executes on the server and
javascript on the client side.

Edward Peloke wrote:

I have some javascript that by itself, runs fine in a php file but, when I
enclose it in php...

?
if (!variable)
{
?

---insert java here

?
}
?

Then is does not work...is there a trick to this?  Can this not be done?

Thanks,
Eddie






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



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




Re: [PHP] javascript and php again

2002-11-13 Thread Chris Boget
 so there is no way to use javascript and php together?  

No, not really.  Not in the way you are hoping.

 If not, can php do some of the cool things that javascript does?  The main 
 thing I am looking for is a somthing like this:
 http://www.dynamicdrive.com/dynamicindex1/popit.htm  but I want the options
 built from the db by mysql.

Go to that page.
View the source.
PHP can output all of that data that you see.
Take everything else you know about PHP and db access and apply it to 
that concept.
 
Chris


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