[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
  Web www.spinics.net

Re: select option value into a variable

Here's one example of a working select:

<title>Display Option</title>
<script LANGUAGE="JavaScript" type="text/javascript">
function display() {
  DispWin = window.open('','NewWin',
  message = "<ul><li><b>Option: </b>" + document.form1.product.value;

<form name="form1">

ex: <select name="product">
<option value="a">Apple</option>
<option value="b">Orange</option>

<p><input TYPE="BUTTON" VALUE="Display" onClick="display();"></p>


Tom B
Internet Content Developer

------ Original Message ------
Received: Wed, 15 Sep 2010 09:08:55 AM EDT
From: vijaya lakshmi <vijayalakshmi6jun@xxxxxxxxx>
To: php-objects@xxxxxxxxxxxxxxx, bang-phpug@xxxxxxxxxxxxxxx
Subject:  select option value into a variable

> Hi,
> need to take the option value of select into a php  variable.
> Can you plz help me in doing this.
> ex: <select name="product">
> <option value="a">Apple</option>
> <option value="b"></option>
> </select>
> so if i select apple then another list box is to be generated.
> if i select orange a diffrent list box should be generated.
> Can you please guide me on how to go about this.
> Thanks in advance......
> -- 
> Thanks & Regards
> Vijayalakshmi
> [Non-text portions of this message have been removed]

[PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux