Hi PPL,
I have a table in my web page which will be displayed when I select an option from a dropdown box. The table appears as follows:
Username Assignment Date Update
me work 2010-01-21 (submit button)
you hello 2010-01-20 (submit button)
Now when i click the submit button a form will open in the next page like this:
Username: (text box)
Assignment: (text box)
I am using session to pick the Username from the table and to be displayed in the form on the next page...the code on the first page is
But, when I click the submit button for the username:me , in the form page the username:you is being displayed.... WHAT IS THE PROBLEM!!!!!!! I CAN'T FIGURE IT OUT :(
Here is the code:
<?php
session_start();
//rest of my code
$_SESSION['Username']=$row['Username'];
?>
//code on second page for the form is
<td><input readonly="Username" type="text" name="Username" value="<?php session_start(); echo $_SESSION['Username']; ?>"></td>
Thanx in Advance