Thanks for the answer but I must admitt that my knowldege of javascript it
is almost none, and I really don't know how to use the hide(), show() etc,
functions, so if somebody can point me to some site or can give an example
of how it works I'm sure I can work around the problem.

Thanks in advance.


----- Original Message -----
From: "Morten Winkler Jørgensen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 23, 2001 11:06 PM
Subject: Re: [PHP] javascript ?


> Only use hide(), show(), block(), etc. if you want an "ordinary"
> htmlpage to be shown. If you on the other hand want the values of form
> elements to change you should do something like this:
>
>
> <SCRIPT LANGUAGE="javascript">
> function fillForm(){
>         document.form_name.txt.value =
document.form_name.a_selection.value;
> }
> </SCRIPT>
>
> <FORM NAME="form_name" METHOD... ACTION....>
> <SELECT NAME="a_selection" onChange="fillForm();">
>   <OPTION VALUE="pickup">Pick up
>   <OPTION VALUE="Goto">Go to
> </SELECT>
> <BR>
> <INPUT TYPE="text" NAME="txt" VALUE="">
> <FORM>
>
> AB> I want to create a form which once you select a radio button or a drop
down
> AB> menu display the proper fields according to the selection.
>
> AB> Let say that we have two options : To go and Pick Up. If the user
select to
> AB> go then automatically display the address field, zip field etc, if the
user
> AB> select pick up display the time field etc.
>
>
>
>
>
>
> Kind regards,
>     Morten Winkler
>
>
>
> --
> 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 administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
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 administrators, e-mail: [EMAIL PROTECTED]

Reply via email to