need help with image please...

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
Alidad
Forum Commoner
Posts: 29
Joined: Thu Mar 29, 2007 12:42 pm

need help with image please...

Post 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....
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: need help with image please...

Post by Christopher »

(#10850)
Alidad
Forum Commoner
Posts: 29
Joined: Thu Mar 29, 2007 12:42 pm

Re: need help with image please...

Post by Alidad »

so bascially i have to write that code like this

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

is this correct!

AM
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Re: need help with image please...

Post by panic! »

Post Reply