Passing all <option> from <select> to php

From: Ang Talunin (please.no.spam_at_no-reply.com)
Date: 12/27/03


Date: Sat, 27 Dec 2003 16:01:26 +0100

Hey,

I wondering if it's possible to retrieve all the <option>-fields from a
<select> when posting a <form> to a php file

Example:
I've got a form like this:

<form action = phpfile.php method=post >
<select name= "name">
<option value="1">1</option>
<option value="2">2</option>
</select>
</form>

and a php file where i retrieve the posted date:

$name=$_POST["name"];

but how can i get the value of option 1 and option 2 no matter if they are
selected or not?

Anybody knows?



Relevant Pages

  • The name of the PHP file
    ... I was wondering if there was a way for a PHP file to retrieve the name ... reviews and interviews with celebrities on it. ... Prev by Date: ...
    (alt.php)
  • Re: The name of the PHP file
    ... Kees Boer schreef: ... If I'm running piercebrosnan.php, the PHP file would be able to retrieve the name piercebrosnan as a variable. ...
    (alt.php)
  • RE: Questions regarding which APIs to use to retrieve network info
    ... It gives information about root hints and forwarders. ... I found the cache.dns file prior to posting my question, ... rather than reflecting the DNS Server Cache from one ... >>I need to retrieve the list of IP addresses of Forwarders to which a DNS ...
    (microsoft.public.win32.programmer.networks)
  • Re: 2 Questions
    ... the instructions to the letter including to retrieve 1000 which is the ... maximum but the displayed messages are only for one day. ... I want to do is to find replies for my posting on July 10 but none are ...
    (microsoft.public.windowsxp.general)
  • Re: Trying to understand the components of DV capture/edit/viewing - File 1 of 3 - dvprimer.
    ... >easy to choose to not even read/open a posting based on any ... >number of criteria including message size (which I have selected ... I retrieve the full message. ... "Northern Hemisphere tourists must purchase new CD players ...
    (rec.video.production)