checkbox, MySql and PHP |
![]() ![]() |
checkbox, MySql and PHP |
Nov 20 2009, 05:14 PM
Post
#1
|
|
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 8,266 Joined: 23-November 08 Member No.: 6,521 |
I am populating a table through a "while" loop with usernames that come from MySql. The usernames that don't have a date associated with get a checkbox.
To check my results I use: $box = $_POST[box]; print_r(box); in the next script My array gets filled when I use: $table .= '<td><input type="checkbox" name="box[]" value="here is one"></td>'; My array has nothing, when I use: $login = 'something'; $table .= '<input type="checkbox" name="box[]" value="<?php echo($login); ?>"></td>'; My array has nothing, when I use: $table .= '<input type="checkbox" name="box[]" value="<?php echo($row['LoginID']; ?>"></td>'; So, what am I doing wrong? |
|
|
|
![]() ![]() ![]() |
|
Lo-Fi Version | Time is now: 19th March 2010 - 02:20 AM |