First off, thanks to all here for the help you have given me so far. I've learned so much in such a short time...
My current problem, is actually a couple of problems I'm having. First, I have a page that lists users in my database, by dynamic checkbox. What I am trying to do is simply just insert those users that are checked into the table...seems easy, but for some reason, I can't seem to get it right. Basically taking this first page and then want to pass it to another that will do the insert...this is where my second problem comes in. I'm passing a variable along with this and am able to get it to the 1st page, but it will not go to the 2nd page..here is my code (what it is now) and I would appreciate any help...(you'll notice that right now I'm just trying to echo my variables so I know I'm on the right track)
assign.php
<?
include('db_connect.php');
$GET['coursename'];
$SESSION['username'];
$sql = "SELECT * FROM users;";
$result = mysql_query( $sql );
while ($a_row = mysql_fetch_array($result) ) {
echo "<br><input type='checkbox' name='Num" . $a_row["username"] . "' value='1'>" . $a_row["name"];
}
$username = $a_row["username"]
?>
<form action="insertcourse.php" method="post" name="insertcourse">
<input type="submit" name="Submit" value="Submit">
</form>
?>
insert.php
<?php
include('db_connect.php');
$GET['coursename'];
$GET['username'];
$today = date("m-d-y");
echo "$coursename, $users, $today";
?>