# Passing a variable through PHP with a URL

**URL:** <https://forum.kirupa.com/t/passing-a-variable-through-php-with-a-url/71670>\
**Category:** Uncategorized\
**Created:** [November 28, 2004, 4:13am UTC](https://forum.kirupa.com/t/passing-a-variable-through-php-with-a-url/71670 "2004-11-28T04:13:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mprzybylski](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mprzybylski/32/613_2.png) [@mprzybylski](https://forum.kirupa.com/u/mprzybylski)\
**Post date:** [November 28, 2004, 4:13am UTC](https://forum.kirupa.com/t/passing-a-variable-through-php-with-a-url/71670/1 "2004-11-28T04:13:18Z")

</div>

i have two lines of code in insert.php that read:

```php
$card = mysql_insert_id();
$Body .= "http://www.reintroducing.com/apnw/load.php?card=$card
";

```

now, the link generated comes out in the e-mail that is sent through the script as [http://www.reintroducing.com/apnw/load.php?card=8](http://www.reintroducing.com/apnw/load.php?card=8) lets say for instance. then i have load.php that i want to use the value of $card (8 in this example) to run an SQL query and load up all information from the table ecard that has to do with record 8 and display it. how would i go about doing this?
