i did this editGallery.php?=<?php echo(isset($_POST['id'])?$_POST['id']:""); ?>
no id goes to the url
then on the edit page i did this
input type="hidden" name="id" id="id" value="<?php echo(isset($_GET['id'])?$_GET['id']:""); ?>
record set on the edit page looks like this
ELECT pg1_gallery.* , count(pg1_gallery_images.imgsrc) AS `number of images` , pg1_gallery_images.* , pg1_gallery_images.photoComment , pg1_gallery_images.created , pg1_gallery_images.watermark_text , pg1_gallery_images.upDated , pg1_gallery.updated , pg1_gallery.id , pg1_gallery.created , pg1_gallery.GalleryName , pg1_gallery_images.gallery_id
FROM pg1_gallery LEFT OUTER JOIN pg1_gallery_images ON pg1_gallery.id = pg1_gallery_images.gallery_id
WHERE id = Paramid OR ( -1= Paramid2 AND id= ParamSessionid)
ORDER BY pg1_gallery.id
paramid looks like this $_GET['id']