Passing all <option> from <select> to php
From: Ang Talunin (please.no.spam_at_no-reply.com)
Date: 12/27/03
- Next message: Peter: "script input being an array of variables ... is this possible ?"
- Previous message: J.O. Aho: "Re: Removing comment lines."
- Next in thread: Good Man: "Re: Passing all <option> from <select> to php"
- Reply: Good Man: "Re: Passing all <option> from <select> to php"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?
- Next message: Peter: "script input being an array of variables ... is this possible ?"
- Previous message: J.O. Aho: "Re: Removing comment lines."
- Next in thread: Good Man: "Re: Passing all <option> from <select> to php"
- Reply: Good Man: "Re: Passing all <option> from <select> to php"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|