Re: MySql, PHP and Javascript

2003-02-01 Thread Benjamin Pflugmann
Hi. On Fri 2003-01-31 at 08:27:11 +, [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

Re: MySql, PHP and Javascript

2003-01-31 Thread Brian
- Original Message - From: Steve Davies <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 31, 2003 3:27 AM Subject: MySql, PHP and Javascript > Hi All > > Is it possible to mix javascript and PHP in the same script?? > Short answer: Yes :) Longer explanation: Javasc

RE: MySql, PHP and Javascript

2003-01-31 Thread Jennifer Goodie
PHP is server side, javascript is client side, they do not interact with each other. PHP gets parsed by on the server before the page is rendered, javascript is interpreted by the browser. You can either have PHP generate the javascript or just put it in the page. Rollovers have nothing to do wi

Re: MySql, PHP and Javascript

2003-01-31 Thread Brent Baisley
Of course. Javascript is a client side scripting language and is run in the users browser, whereas PHP is run on the server. The javascript is just text to the PHP parser, like HTML. Javascript will allow you to do dynamic stuff, but if you are looking for aesthetics you would be better off lea

Re: MySql, PHP and Javascript

2003-01-31 Thread Doug Thompson
Steve: On Fri, 31 Jan 2003 08:27:11 +, Steve Davies wrote: >Is it possible to mix javascript and PHP in the same script?? > Certainly. Exactly as HTML and PHP are intermingled in a document. >I have a number of web based apps written in PHP/MySql and while they >are functionally pretty

RE: MySql, PHP and Javascript

2003-01-31 Thread Hoffman, Geoffrey
Absoulutely. Since PHP is server-side you can write javascript dynamically on the fly which are then executed client-side. Here's a simple example: var today = ''; > -Original Message- > From: Steve Davies [mailto:[EMAIL PROTECTED]] > Sent: Friday,

RE: MySql, PHP and Javascript

2003-01-31 Thread [EMAIL PROTECTED]
>Is it possible to mix javascript and PHP in the same script?? Yes it is, but you have to remember that PHP is server side and Javascript is Client side. >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 lik

Re: MySql, PHP and Javascript

2003-01-31 Thread Kamara Eric R-M
Hi Steve, You can definitely mix javascript and PHP in the same script so long as you follow the correct syntax for each language.There is no way out here really...if you want to include javascript in your scripts then you have to learn it:-) unless you want to hire someone to do it for you...

Re: MySql, PHP and Javascript

2003-01-31 Thread Kevin Smith
Hi Steve, Yes, it is possible to mix PHP and JavaScript, for example: var givemeaphpvalue = ; I use PHP and Javascript together quite often. Regards, Kevin - Original Message - From: "Steve Davies" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 31, 2003 8:27 AM Subje

Re: MySql, PHP and Javascript

2003-01-31 Thread Josh Trutwin
> Hi All > > Is it possible to mix javascript and PHP in the same script?? Client-side Javascript can be sent to the user along with your html. For Example: echo ("\n"); echo ("\n"); echo ("\n"); echo

Re: MySql, PHP and Javascript

2003-01-31 Thread Stefan Hinz, iConnect \(Berlin\)
Steve, this list is not the right place to ask JavaScript questions. Please check out an appropriate list at http://php.net/. But, anyway, it's possible to mix JS and PHP, no problem. Regards, -- Stefan Hinz <[EMAIL PROTECTED]> Geschäftsführer / CEO iConnect GmbH Heese