1<?php
2
3 // if your url is http://link?var=value
4
5if (isset($_GET['var'])) // works with request
6 $var = $_GET['var'];
7echo $var;
8
9// output value
10
1<a href="index.php?id=<?php echo $my_id;?>&name=<?php echo $my_name;?>Click</a>
2
3<?php
4$id = intval($_GET['id']); // integer value
5$name = strval($_GET['name']); // string value
6?>