Hey guys, I'm creating a database-driven application. It's been working great, however, I noticed a HUGE security bug--When a user clicks the edit user info page, the user's id number(which is used by the database to notify which user must be edited ex: // UPDATE WHERE id=x //) is sent through a $GET statement instead of a $POST. This is a huge security risk--rather, guarantee, because anyone could simply enter another id field into the address bar and edit another user. So I want to use a post. Here's the problem.
I basically have a link that looks like this:
<a href="frmEditUserRecord.php"> Edit User Info </a>
Now, I have a session variable from which the login id will come:
$school_id = $_SESSION['id'];
What I want is for, when the user clicks the link, the $school_id variable is sent by a $_POST. From what I've heard, however, you can't use post without using a form. So could I somehow use a hidden form? Any help on this issue would be greatly appreciated!