Basically, I have 3 separate a elements but they all use the same variable when clicked so I figured adding them to a single isset($_GET['file_id']
.
These are the three a
elements I wish to use:
<a href='main.php?file_id=".$row['filID']."'>Download</a>
<a href='admin.php?file_id=".$row['filID']>Edit</a>
<a href='adminphp?file_id=".$row['filID']>Hide</a>
I’d like to ask if I can run a $_POST
or an if-statement containing the a
element ‘type’ or ‘id’. Or will I need a jquery code to get the id of the a
element?