You are forgetting to read the parameter "value" of the 2nd page:
You should do something like that at the beginning of your second page:
if(isset($_GET['value'])){
$_SESSION['ship'] = $_GET['value'];
}
Also, your html for the images in the first page should be:
<a href="basicForm2.php?value=1"><img src="img/space/serenity_thumb.jpg" alt="serenity"/></a>
<a href="basicForm2.php?value=2"><img src="img/space/battlestar_thumb.jpg" alt="battlestar"/></a>
<a href="basicForm2.php?value=3"><img src="img/space/enterprise_thumb.jpg" alt="enterprise"/></a>
<a href="basicForm2.php?value=4"><img src="img/space/millenium_thumb.jpg" alt="millenium"/></a>
<a href="basicForm2.php?value=5"><img src="img/space/integrity_thumb.jpg" alt="integrity"/></a>
<a href="basicForm2.php?value=6"><img src="img/space/planetes_thumb.jpg" alt="planets"/></a>
And the session asignation on the second page should be corrected like that:
$_SESSION['ship'] = ((isset($_SESSION['ship'])) ?
$_SESSION['ship'] : 1);
"1" instead of "0"
or better:
if(!isset($_SESSION['ship']))
$_SESSION['ship'] = 1;
And last, the following line on your code in page 1, is not useful, so you can delete it:
$_SESSION['ship'] = 1;// this makes second page start with the first image (and I want that pic to be //the one that is clicked.