PHP - A href Problem?

Stjerne

New member
Hi, everyone. I'm just a bit confused as to what the following line of code is doing. I have no problem executing the code, I just want to understand what it's doing.

"<a href='cart.php?add=".$get_row['id']."'>Add</a>"

Now, I understand the "<a href= part, but starting from 'cart.php I don't understand what the question mark is doing (I thought it was used for a different type of operation) and especially the add after the ? along with the =

I know what the variable there is doing, so that's not the problem. Just the beginning part. What does PHP do concerning a hrefs?

Thanks!
 
Back
Top