# Link not passing variables PHP

**URL:** <https://forum.kirupa.com/t/link-not-passing-variables-php/79016>\
**Category:** programming\
**Created:** [February 9, 2005, 10:59pm UTC](https://forum.kirupa.com/t/link-not-passing-variables-php/79016 "2005-02-09T22:59:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![imagined](https://avatars.discourse-cdn.com/v4/letter/i/a87d85/32.png) [@imagined](https://forum.kirupa.com/u/imagined)\
**Post date:** [February 9, 2005, 10:59pm UTC](https://forum.kirupa.com/t/link-not-passing-variables-php/79016/1 "2005-02-09T22:59:55Z")

</div>

This is part of the script:

```php

while($groupListRow = mysql_fetch_array($groupListResult))
{
$groupId = $groupListRow["id"];
$list = $groupListRow["groupName"];
echo("<li>" . $list . " - <a href='EDIT_group.php?id=$groupId&groupName=$list'>Edit</a></li>");
}

```

This is what comes out on the address bar after clicking the link:  
[http://localhost/troubleticket/EDIT\_group.php?id=1&groupName=Accounting](http://localhost/troubleticket/EDIT_group.php?id=1&groupName=Accounting)

This EDIT\_group.php where it should go.

```php

echo ($id);
echo ($groupName);

```

Why doesn’t it print? The variables show on the address bar! What am I doing wrong? :h:
