Anonymous | Login | Signup for a new account | 11-22-2024 02:33 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0000006 | [Quercus] | minor | always | 11-27-05 10:01 | 12-30-05 18:18 | ||||
Reporter | creich | View Status | public | ||||||
Assigned To | creich | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | |||||||
Summary | 0000006: extract($_POST) does not work for arrays posted to a Quercus page | ||||||||
Description |
When you submit the following html form: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd"> [^] <html xmlns="http://www.w3.org/1999/xhtml"> [^] <head> <title>Football Picks</title> </head> <body> <form action="extractpost.php" method="post"> <table width="30%"> <tr> <td><input type="radio" name="picks[1]" value="New Orleans">New Orleans</td> <td>at</td> <td><input type="radio" name="picks[1]" value="Buffalo">Buffalo</td> </tr> <tr> <td><input type="radio" name="picks[2]" value="New England">New England</td> <td>at</td> <td><input type="radio" name="picks[2]" value="Cincinnati">Cincinnati</td> </tr> <tr> <td><input type="radio" name="picks[3]" value="Seattle">Seattle</td> <td>at</td> <td><input type="radio" name="picks[3]" value="Cleveland">Cleveland</td> </tr> <tr> <td><input type="radio" name="picks[4]" value="Tampa Bay">Tampa Bay</td> <td>at</td> <td><input type="radio" name="picks[4]" value="Dallas">Dallas</td> </tr> <tr> <td colspan="3" width="100%" align="center" valign="top"><input type="submit" name="Submit" value="Submit!"> </tr> </table> </form> </body> </html> to this PHP page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd"> [^] <html xmlns="http://www.w3.org/1999/xhtml"> [^] <head> <title>Football Picks</title> </head> <body> <?php extract($_POST); foreach ($picks as $pick) { echo "$pick \n"; } ?> </body> </html> You are supposed to see a list of all the "$picks." But extract in quercus doesn't handle arrays posted in forms. |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
32 total queries executed. 27 unique queries executed. |