Page 1 of 1

need help with image please...

Posted: Fri Sep 05, 2008 2:40 pm
by Alidad
Hi, I need help with php because I’m still rookie.

Let say that the new person load website showing first default image called “image-1.jpg”.

Then are menu showing list of images and if person want to change image to replace with first one, all they have to do is to click on image and then replace with default one. For sample person selected images-4.jpg and replace with default which is "image-1.jpg, so the images-4.jpg become default images when next the load site.

But my problme is that how can I write code with cookie or session variable to load default images if person change images and want to use the default one when they load site!

please help thanks....

Re: need help with image please...

Posted: Fri Sep 05, 2008 2:59 pm
by Christopher

Re: need help with image please...

Posted: Fri Sep 05, 2008 3:10 pm
by Alidad
so bascially i have to write that code like this

<?php
<img src="pathname/($_COOKIE["image-1.jpg"]) ;
?>

is this correct!

AM

Re: need help with image please...

Posted: Sat Sep 06, 2008 11:19 am
by panic!