[!--quoteo(post=360070:date=Mar 30 2006, 12:19 PM:name=psi-phy)--][div class=\'quotetop\']QUOTE(psi-phy @ Mar 30 2006, 12:19 PM)
Yeah I just tried that, and it works, however i realized that I was using ONE form to try to do TWO different things. The hidden fields I made contain commands for which function to load when the page is submitted depending on which link is clicked. The problem is that when it submits, I get BOTH function commands as all the data is in one form. :\ I have a hidden="edit" and a hidden="delete" but they are "in the same form" so both values are submitted and it doesn't work properly.
God this sucks
why not just converge both the hidden=edit and hidden=delete into 1
<input type="hidden" name="action" value="">
<a href="index.php" onclick="document.getElementById('action').value ="edit";
<a href="index.php" onclick="document.getElementById('action').value ="delete"; document.name_of_form.submit()">Delete</a>
Then you can check the $_POST['action'] on the submit and call the function of choice