I am trying to maintain a custom built PHP roster system. I'm trying to pass a variable along to a second PHP page. Previously, this was being done through a form with a dropdown:
<form METHOD=POST ACTION=\"awardedit.php\">
<input TYPE=\"hidden\" NAME=\"pagestep\" value=\"1\">
<select name=\"username\">
<option value=\"" . $username . "\">" . $username;
</select>
</form>
(somehow, even without closing the option tag, this still worked)
These were followed by individual buttons that determined where it went to on "awardedit.php"
However, the dropdown list is not the way to go when we have a large number of users. The usability is not great.
I'm attempting to query the database to get a list of the users, then display the users in a table, along with the those buttons that get you to different sections of awardedit.php.
I just cannot figure how to pass the $username variable through without "form method = post action = awardedit.php"
I know how to echo the username through to show the users username, but I don't know the code to pass through the variable.
I'm sorry this is so bad, but I really am very amateur and have been reading and reading to try and figure this out, (sessions, ajax, $_POST), but I just can't figure out how to implement this change.