From: Andrew McMillan <andrew@catalyst.net.nz>
To: dharm shankar <dharm_shankar@rediffmail.com>
Cc: pgsql-php@postgresql.org
Cc: mfischer@josefine.ben.tuwien.ac.at
Cc: mfork@toledolink.com
Subject: Re:
Date: 15 Jun 2002 14:18:11 +1200
Message-ID: <1024107491.15964.45.camel@kant.mcmillan.net.nz> (raw)
In-Reply-To: <20020614073005.16274.qmail@webmail20.rediffmail.com>
References: <20020614073005.16274.qmail@webmail20.rediffmail.com>
On Fri, 2002-06-14 at 19:30, dharm shankar wrote:
> Hi
>
> i want to use javascript variable in my php code.look on that
> code.
Hi,
Your request is not clear. Do you want to include the value of a PHP
variable within your javascript?
Just use the <?php echo $myvar; ?> in the middle of your javascript and
print it.
Do you want to get the value from your javascript code and do something
with in your PHP? This is much harder. Remember, the javascript is
executing on a different computer, and will only commence execution once
the whole of the page is loaded. You probably need to make your
javascript to a request to a PHP page which includes the variable URL
encoded.
Regards,
Andrew.
>
> <script>
>
> function ch(list)
> {
> var l2;
> l2=list.option.text;
> //i want to send the value of l2 in php file/code.
> }
> </script>
>
> <html>
> <select name="dd" onChange="ch(this);">
> <option>dd</option>
> <option>www</option>
> <option>ww</option>
> <option>dsfd</option>
> </select>
> </html>
>
> pls send me solution as well as possible.
>
> dharm
> "Richie" <dugganr@student.cs.ucc.ie>
>
> _________________________________________________________
> Click below to visit monsterindia.com and review jobs in India or
> Abroad
> http://monsterindia.rediff.com/jobs
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>
--
--------------------------------------------------------------------
Andrew @ Catalyst .Net.NZ Ltd, PO Box 11-053, Manners St, Wellington
WEB: http://catalyst.net.nz/ PHYS: Level 2, 150-154 Willis St
DDI: +64(4)916-7201 MOB: +64(21)635-694 OFFICE: +64(4)499-2267
Are you enrolled at http://schoolreunions.co.nz/ yet?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: andrew@catalyst.net.nz, dharm_shankar@rediffmail.com, mfischer@josefine.ben.tuwien.ac.at, mfork@toledolink.com
Subject: Re:
In-Reply-To: <1024107491.15964.45.camel@kant.mcmillan.net.nz>
References: <20020614073005.16274.qmail@webmail20.rediffmail.com> <1024107491.15964.45.camel@kant.mcmillan.net.nz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox