Hello,
I have a problem that I'm trying to figure out. I'm trying to come up with a solution where I have multiple links in a form...
Let me give an example :
<form name='newForm' method='post' action=''>
while($row .....) {
<input type='hidden' value='".$id."' name='selBillAdd'/>
<a href='#' onclick='document.forms["newForm"].submit();' >Use This Address</a>
}
<a href='#' onclick='document.forms["newForm"].submit();' >Use This Address</a>
</form>
*note: I know I don't have the correct syntax, but I'm just showing a simplified version to make the code easier to read.
So I have set up a while loop and inside are links. and it corresponds with a set of different data the user can choose.
Now the user has the option to choose the already address that is in the database, or the user can choose to input new address which is the link that I have outside of the while loop.
How do I set up a system where if the user inputs data, my page won't select any of the other links?
Is there a way to set each link as a POST value? so when they click on that specific link, i can set a
if(isset($_POST...
function?
Thank you!