Hi.

On Fri 2003-01-31 at 08:27:11 +0000, [EMAIL PROTECTED] wrote:
> 
> Is it possible to mix javascript and PHP in the same script??

Of course. One (PHP) is run on the server side in order to create a
page which is sent to the client (here: the browser). The other
(Javascript) may be contained in that page and is executed on the
client side. So if you want to use Javascript, you have to write your
PHP pages in a way that they output the needed Javascript. Which
should be easy, if you kept your algorithms and HTML kind of seperated
in PHP.

HTH,

        Benjamin.


PS. If you completly mixed printing the HTML into the algorithms, then
it isn't going to be easy, but no change to the HTML would be - so you
didn't do that, right?

> I have a number of web based apps written in PHP/MySql and while they 
> are functionally pretty good they are aesthetically garbage. I'll like 
> to pretty up the interfaces with rollovers etc, but haven't got time to 
> learn JS properly especially if I have to completly re-write the 
> functionality.
[...]

-- 
[EMAIL PROTECTED]

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to