AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

declaring variable in onchange to use in php

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> comp.lang.java.javascript
View previous topic :: View next topic  
Author Message
R.G. Vervoort
Guest





PostPosted: Thu Apr 15, 2004 9:45 pm    Post subject: declaring variable in onchange to use in php Reply with quote



is it possible to declare a variable in the onchange event of a <select> and
use it later in php

I would like to put the value of the selected option (in <select>) in a
variable and later when i activate a php function use this variable

Looks inpossible but who knows maybe it is possible


roy


Back to top
Michael Winter
Guest





PostPosted: Sat Apr 17, 2004 1:47 pm    Post subject: Re: declaring variable in onchange to use in php Reply with quote



On Thu, 15 Apr 2004 23:45:42 +0200, R.G. Vervoort
<roy.vervoort (AT) royvervoort (DOT) nl> wrote:

Quote:
is it possible to declare a variable in the onchange event of a <select
and use it later in php

I would like to put the value of the selected option (in variable and later when i activate a php function use this variable

Looks inpossible but who knows maybe it is possible

You'll have to send it to the server using either the search (query) part
of the URI, or POSTed in a form. Server-side languages cannot obtain the
values of script variables directly as that data only exists on the client.

Mike

--
Michael Winter
[email]M.Winter (AT) blueyonder (DOT) co.inva[/email]lid (replace ".invalid" with ".uk" to reply)

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> comp.lang.java.javascript All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.