I have this code
<?php echo "$artist"; ?>
In my url I have mysite.com/page.php?artist=james
Why is it not appearing on my page?
Thanks,
Jon
Try this
<?php $artist ="artist"; echo $artist; ?>
Why would it? Register globals is switched off.
<?php echo $_GET['$artist']; ?>
thorpe, I tried your code but still it doesn't work. Some more of the code:
<tr> <td><p> <?php echo $_GET['$artist']; ?> </p> <p><strong>Welcome</strong></p>
$_GET['artist']
RTM here.
Do not precede the artist with a $
<tr> <td><p> <?php echo $_GET['artist']; ?> </p> <p><strong>Welcome</strong></p>
Doh... Sorry, thats just a copy and paste error on my behalf.
That worked. Thank you!