Passing and retrieving a URL variable
<p>I am trying to pass and retrieve a variable from one page to another. When i run the page
i'm getting the error 'URL not found'. So im guessing my variable hasn't been passed to the page. </p>

<p>When i click on the pages edit.php and delete.php the corresponding url is being displayed. i.e edit.php?id=1, edit.php?id=2 etc.  I have tried a number of different things but can't seem to resolve this issue.  </p>

<p>Here is the source code:</p>

<p>First Page (The links):</p>

<pre><code>$ads_id = $row ["ads_id"]; //Value retrieved from database and stored in local variable

&lt;a href="delete.php?id=' . $ads_id . '"&gt;

&lt;a href="edit.php?id=' . $ads_id . '"&gt;
</code></pre>

<p><strong>edit.php</strong></p>

<pre><code>if (isset($_GET['id'])) {

$ads_id = $_GET['id'];

}
else

 {

  echo "URL not found";
 }
</code></pre>
