Hello folks

I wrote a JavaScript to set the values of a Select html object by client
side. The values are copied from another Select that I create getting the
values from the database. After the user set the values he/she wants to add
it in another form, for example, then press submit button, the values of the
"user" Select object doesn't appears on the next page. What can I do to get
the user selected values in the another page?

Someone could help me?

Thanks!
.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Maurício Alegre Valente
AGP5 Tecnologia da Informação Ltda.
(48) 439-3004
Visite nosso site: www.agp5.com.br
.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
----- Original Message ----- 
From: "Nicholas Robinson" <[EMAIL PROTECTED]>
To: "skate" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, August 05, 2003 4:26 AM
Subject: Re: [PHP] easier than switch


> As, in this case, only one of the variables is non-null, then you could
use
> the string concatenation operator and this would return what you want.
>
> i.e. type = $_POST['news'] . $_POST['dreams'] . $_POST['storys']...
>
> I think I've used the same variable name in different forms on the same
page,
> as only one form submission occurs at any one time there can't be a
conflict
> and PHP doesn't care where the POST'ed variable came from.. So, you could
> rename news, dreams, etc. to be type and extract the result directly
without
> having to fiddle around.
>
> HTH
>
> Nick
>
> On Monday 04 Aug 2003 11:19 pm, skate wrote:
> > okay, so i know there's an easy way to do this, and i've seen it done,
sure
> > of it. so please forgive the stupidity of my question, i don't even know
> > where to begin to look in the archives either...
> >
> > i have several forms on one page, they all submit a different variable,
i
> > then want to set one variable depending on that... okay, now i'm
confusing
> > myself, lets try explain it with some code...
> >
> > <?
> >
> > if(isset($_POST))
> > {
> >  $type = $_POST['news'] || $_POST['dreams'] || $_POST['storys'] ||
> > $_POST['words'] || $_POST['chat']; }
> >
> > ?>
> >
> > obviously this doesn't work. but i wanna set $type depending on which
> > $_POST variable was sent. only one of these will ever be sent. rather
than
> > doing a big ass switch statement, is there no way i can get this into
one
> > line?
> >
> > i hope this isn't too confusing...
>
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to