Re: [PHP] Onclick event and PHP function

2006-02-15 Thread Gerry Danen
Pretty much the same technique I am using, tedd. I may have even used your example as inspiration... :) At the top of each page, I use $currentstylecolor = isset( $_COOKIE['currentstyle'] ) ? $_COOKIE['currentstyle'] : "brown"; // brown = default style $currentstyle = "/skins/style_" . $

Re: [PHP] Onclick event and PHP function

2006-02-15 Thread tedd
Alain, have you tried cookies? On http://www.lily-gallery.com/ you will see 2 colored dots (bottom left) that allows for alternate page colors. Once a user chooses one, I remember his choice with a cookie. I use the cookie to control a style sheet. Gerry I didn't realize that he was wanting a

Re: [PHP] Onclick event and PHP function

2006-02-15 Thread Gerry Danen
Alain, have you tried cookies? On http://www.lily-gallery.com/ you will see 2 colored dots (bottom left) that allows for alternate page colors. Once a user chooses one, I remember his choice with a cookie. I use the cookie to control a style sheet. Gerry On 2/15/06, Alain Roger <[EMAIL PROTECTED

Re: [PHP] Onclick event and PHP function

2006-02-15 Thread Richard Collyer
Hello, Your getting confused between server side and client side. PHP CANNOT be run on the client side which is what Javascript is. In this case all you are doing is calling that php function twice one for eng and once for fre. Instead try using mydomain.com/setlang?=eng as a link which calls v

Re: [PHP] OnClick handler to show PDF

2004-05-13 Thread Todd Cary
You were close enough...this works: The next challenge is to create a new window and display the file. Todd John Nichel wrote: Todd Cary wrote: Currently, I have a Link to show a PDF file here to open the Race Schedule'); ?> I want to replace it with a button and an OnClick() '); ?>

Re: [PHP] OnClick handler to show PDF

2004-05-13 Thread John Nichel
John Nichel wrote: Todd Cary wrote: Currently, I have a Link to show a PDF file here to open the Race Schedule'); ?> I want to replace it with a button and an OnClick() '); ?> I cannot get the syntax correct for the OnClick. Is this the best way to use a button for the task? Todd Since thi

Re: [PHP] OnClick handler to show PDF

2004-05-13 Thread John Nichel
Todd Cary wrote: Currently, I have a Link to show a PDF file here to open the Race Schedule'); ?> I want to replace it with a button and an OnClick() '); ?> I cannot get the syntax correct for the OnClick. Is this the best way to use a button for the task? Todd Since this is a PHP mailing li

RE: [PHP] onClick

2003-11-18 Thread Vail, Warren
onClick="this.form.submit();" will trigger a response from your form processing routine, as specified in the form action="myprogram.php". Warren Vail -Original Message- From: Dan McCullough [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 2:42 PM To: Php-General Subject: [PHP] o

RE: [PHP] OnClick problem (fwd)

2003-07-10 Thread andu
lt;[EMAIL PROTECTED]>, Dan Joseph <[EMAIL PROTECTED]> Subject: RE: [PHP] OnClick problem => Hi, => => Wow, you've got me stumped, that shouldn't be printing the previous at => all. Could you forward tihs to the php list? I'm stumped. => => -Dan Joseph =&

RE: [PHP] OnClick problem

2003-07-10 Thread Dan Joseph
Hi, > > Are you using the variable $_SERVER['PHP_SELF'] for your > link target? > > I'm not, I'm a total newbie and don't quite understand, you mean > instead of > href="#" use href=$_SERVER['PHP_SELF']? > Please bare with me and explain. Yeah, it would be: If t

RE: [PHP] OnClick problem

2003-07-10 Thread Dan Joseph
Hi, > Here's something I cant explain: > I have a page with a form on it (checkboxes) and a hyperlink which is > supposed to send the form to the server using: > > Trouble is that the link always points to the name of the > previous page I > came from. All pages are php generated on-the-fly.

Re: [PHP] Onclick and PhP

2001-08-15 Thread Renze Munnik
On Wed, Aug 15, 2001 at 11:56:42AM +0200, Flugel wrote: > Is it also possible for the output of that php-page (MySQL query) to be > displayed in a layer on the page where the button is located? Should be... But unfortunately I don't have enough time to figure it out for you at the moment. Sorry!

Re: [PHP] Onclick and PhP

2001-08-15 Thread Flugel
Is it also possible for the output of that php-page (MySQL query) to be displayed in a layer on the page where the button is located? "Renze Munnik" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Wed, Aug 15, 2001 at 11:45:03AM +0200, Flugel wrote: > > When

Re: [PHP] Onclick and PhP

2001-08-15 Thread Renze Munnik
On Wed, Aug 15, 2001 at 11:45:03AM +0200, Flugel wrote: > When a page is loaded the php code is being executed, is this also possible > for an onclick event? If so how do I do that? > > tnx! No. PHP is server-side, not client-side like onclick (JS). The only way to do things like that is: oncl