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

[PHP] Onclick event and PHP function

2006-02-15 Thread Alain Roger
Hi, I have some link on which if user click, should do the following things: - open a particular page - setup to sessions some particular variable value however, PHP function should be declared before HTML headers. so i was thinking about something like that ... ">english ">french ... but

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

[PHP] OnClick handler to show PDF

2004-05-13 Thread Todd Cary
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 -- PHP General Mailing List (http://www.php.net

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-G

[PHP] onClick

2003-11-18 Thread Dan McCullough
I want an event to get triggered when using onClick, but the event will be MySQL delete/update/insert so how would I go about doing that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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.

[PHP] OnClick problem

2003-07-10 Thread andu
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. Is this a php problem

Re: Re[2]: [PHP] Onclick and PhP

2001-08-15 Thread Flugel
Wow you're good!! Tnx that was exactly what I needed!! Thumbs up for Morten Winkler Jørgensen tnx again! "Orv î?÷inklÏ ²ørÏkîskî" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Try this page. It is a hack but I think it does what you want it to. > > > > >

Re[2]: [PHP] Onclick and PhP

2001-08-15 Thread Morten Winkler Jørgensen
Try this page. It is a hack but I think it does what you want it to. This is a page with a button on it. When you press it you willget something in the layer. -- Kind regards, Morten Winkler -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

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

[PHP] Onclick and PhP

2001-08-15 Thread Flugel
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! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list ad