getting multiple data from password:   :: lost password

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

  •   Subject
  • Author
  • Posted on
Can anyone give me a quick hint for this?

Say, I have: <SELECT NAME="opt3" SIZE="15" multiple>

Then I'd like to list the items selected...
echo $_POST["opt3"];
but this gives only the first one

how do I get the rest?

Re: getting multiple data from

On Feb 6, 4:36 pm, "P Pulkkinen"
Quoted text here. Click to load it

eeehhh I tried to play a bit around with this, but do I also need  a
trick to read it out?


Re: getting multiple data from

Quoted text here. Click to load it

Well, don't use () in the name, but []...

A little hint for debugging POSTs: echo file_get_contents('php://input')  
will give you the raw input.

echo file_get_contents('php://input');
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
    <select name="check()" multiple>
        <option>option 1</option>
        <option>option 2</option>
        <option>option 3</option>
        <option>option 4</option>
        <option>option 5</option>
        <option>option 6</option>
    <select name="check2[]" multiple>
        <option>option q</option>
        <option>option e</option>
        <option>option r</option>
        <option>option t</option>
        <option>option y</option>
        <option>option u</option>
    <input type="submit">
Rik Wasmus

Re: getting multiple data from