IPB

Career Guidance | Technical Jobs | Walkin Interview & Job Fairs | Fresher Jobs

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
checkbox, MySql and PHP
Misha Singh
post 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?
Go to the top of the page
 
+Quote Post

Fast ReplyReply to this topicStart new topic
Tags
No Tag inserted yet

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th March 2010 - 02:20 AM