I've been altering some code. Now, what I want to do is take the authentication from the login page, pass it to another page and have it show up in a field.
Example code:
echo TableStart();
echo HeaderEntry(strtoupper("Report Submitted By"), 2);
//taken from database
echo BoxEntry(3, "Name", $row->PTinjuryRptName, 2);
//taken from database
echo BoxEntry(1, "Job Title", $row->PTinjuryRptJob, -50);
//taken from database
echo BoxEntry(2, "Telephone Number", $row->PTinjuryRptPhone, -50);
//MUST BE BASED ON USER LOGIN INFO
echo BoxEntry(1, "Signature", $fullname);
echo BoxEntry(2, "Date", date("m/d/Y"));
So on my login page, this is working fine:
while($row=mysql_fetch_array($result, MYSQL_ASSOC)) {
$fullname = "$row[Firstname] $row[Lastname]";
echo '<input type="hidden" name="username" value="'.$fullname.'">';
//echo "$Firstname $Lastname";
//}
}
auth_page(); //shows authorized content
Table AUTHENTICATE has fields username, password, Firstname and Lastname.
So how can I get $fullname show in the first portion of code (where signature prints out)? Probably a very simple question...