I have a problem in passing 2 parameters via URL I don't know how, so I wrote this:
<form method="get" >
<b>Enter the Quantity you want:</b>
<input type="text" name="quantity">
</form>
<br><br>
<a href='./shopping-cart.php?part_id="<?php echo $_GET['part_id']; ?>"&quantity="<?php echo $_GET['quantity']; ?>"'>
<img src="add_to_shopping_cart.png">
</a>
$_GET['part_id'] this var from another URL and I want to pass it again and $_GET['quantity'] quantity from form.
<input type="hidden" name="part_id" value="<?php echo $_GET['part_id']; ?>"/>./?actionattribute. And there might be a problem with the quotes.