Falak Ejaz
Falak Ejaz

Reputation: 13

passing mulitiple variables in query string

I want to send multiple variables in a query string like this:

<a href="deleteProduct.php?id=11?Mid='A'"></a>

and then I want to get these on next page like this :

$del=$_GET['id'];
$menu=$_GET['Mid'];

But it gives me error that Mid is undefined. I will be grateful if , some help me . Thanks in advance

Upvotes: 0

Views: 43

Answers (1)

Hanky Panky
Hanky Panky

Reputation: 46900

Just put an & between the name-value pairs in your link. Nothing else required.

? is there only for the first pair, after that all of them come after &, for example

delete.php?id=1
delete.php?id=1&id2=3
delete.php?id=1&id2=3&this=test

Upvotes: 1

Related Questions