need help with this one. I need to create a php code to see the items i've selected
<html>
<body>
<form method = "get" action = "new.php">
<center>
RANDOM IMAGES<br>
<table>
<?php
$images = array('2010 BMW M6.jpg','2011 BMW 750 Li.jpg','2009 BMW M5.jpg','2010 BMW 650 i.jpg','2010 BMW X6 ActiveHybrid.jpg','2010 BMW 550 I G.jpg','2011 BMW X6 xDrive50i.jpg','2011 BMW X6 xDrive50i.jpg','2011 BMW X5 xDrive50i.jpg');
shuffle($images);
for($x=0; $x<3; $x++)
{
echo '<tr>';
for($y=$x*3; $y<(($x+1)*3) ; $y++)
{
echo '<td align="center"><img src="';
echo $images[$y];
$snew = substr($s,0,-4);
echo '" width="150" height="150">';
echo '<br>';
echo '<input type = "checkbox" name = "num[]" value =<?php echo $snew;?>';
echo 'Add to cart <br>';
echo '</td>';
}
echo'</tr>';
}
echo '<center><input type = "submit" name = "submit" value = "ORDER"></center>';
?>
</center>
</body>
</table>
</html>
upon submitting, i must see the image file name. I'm just studying php sorry and thanks! =p