SUCCESS!!!!
(man do I feel STOOPID!!)
A duh .... my cursor was at the end of the array (THIS WHOLE TIME!!)
The reset was needed trick
Thanks M@

Matt Williams wrote:

> Hi Michael
> 
> Just tried this
> ---------------------------------
> <form name="form1" method="get" action="<?= $PHP_SELF; ?>">
>   <select name="list[]" size="3" multiple>
>     <option>1</option>
>     <option>2</option>
>     <option>3</option>
>   </select>
>   <input type="submit" name="Submit" value="Submit">
> </form>
> <?
> reset ($list);
> while (list ($key, $val) = each ($list)) {
>     echo "$key => $val<br>";
> }     
> ?>
> ------------------------------------
> And it prints
> 
> 0 => 1
> 1 => 2
> 2 => 3
> 
> OK on to the few HTML probs I've found
> 
> They are tabnle related really.
> no opening table tag
> closing table tag comes before closing row tag and closing select
> no <td> or </td>
> 
> maybe it would be easier to break out of php into html to set up your table
> and maybe use <td align="center"> instead of all the <center> tags
> 
> HTH
> 
> M@ 


-- 

Michael Kelley                  
[EMAIL PROTECTED] 
        
Programmer/Systems Analyst I    
New Mexico State University
Information and Communication Technologies
Work # (505)-646-1374
P.O. Box 30001
MSC: 3AT
Las Cruces, NM 88003






-- 
PHP Windows 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