I have searched the forums (coding, newbies) for a solution to this hidden fields problem and tried the suggestions, but nothing's working.
What I must do:
Page 1: index.php (login)
pulls from database user info, ie:
while($row=mysql_fetch_array($result, MYSQL_ASSOC)) {
$fullname = "$row[Firstname] $row[Lastname]";
echo '<input type="hidden" name="userfullname" value="'.$fullname.'">';
}
Ta da! $fullname spits back "Test User" when echoed out. Hidden field is showing "<input type="hidden" name="userfullname" value="Test User">"... so far so good.
- User looks up patient name, then gets details located at patient.php.
- On patient.php is a link to display a formatted document, FNShighmarkForm.php.
- FNShighmarkForm.php must then plop $fullname into a field.
Echoing out $fullname on FNShighmarkForm.php gives me nothing.
I've put in:
$userfullname = $_POST['userfullname'];
echo "Fullname: " . $userfullname;
as an example of what I'd like to return. On this totally seperate page, I should get "Test User".
Meanwhile, I'll keep looking around.