I am trying to understand "
Passing variables via hyperlinks".
I found a website that explains how to do that,
BUT, it does not work for me.
The site:
http://mrarrowhead.com/index.php?pag...iables.php#get
The html code
Code:
<a href="http://yourdomain.com/catching-var.php?<span class="bold">name=Shaun</span>
<span class="bold">&Lname=Morgan</span>">Test Page 1</a>
The code on the php page receiving and displaying the "name" variables
Code:
<h2>catching-var.php</h2>
<hr />
<?php
$name = $_GET['name'];
$Lname = $_GET['Lname'];
echo $name.'<br/><br/>';
echo $Lname.'<br/><br/>';
?>
I believe the php code to receive & display the variables appear to be correct, but it seems that the variables are not being passed (or I am doing something wrong).
I would appreciate if someone would please help me understand. Sincerely, Eggweezer
My example is at :
http://briskeee.org/