I'm trying to pass variables using "get" in php, but ran into a snag.
Here's my PHP file:
<?php
include '../includes/header.php';
?>
<div id="page">
<div id="content">
<h3><?php $_GET['head']; ?></h3>
<div id="screenshots"> <img src="../images/sites/<?php $_GET['img1']; ?>" /> <img src="../images/sites/<?php $_GET['img2']; ?>" /> </div>
<div id="description">
<p><?php $_GET['p1']; ?></p>
<p><?php $_GET['p2']; ?></p>
</div>
</div>
</div>
<?php
include '../includes/footer.php';
?>
To test it out I made a simple request:
<a href="work/test.php?head=a&img1=b&img2=c&p1=d&p2=e"><img src="images/sites/thumbs/thumb.jpg"/></a>
It goes to the correct page but none of the variables are getting seen. Did I make a stupid mistake somewhere? Thanks!