Posting a value to another page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Rob_Scott
Forum Newbie
Posts: 19
Joined: Mon Nov 14, 2011 6:08 am

Posting a value to another page

Post by Rob_Scott »

Hi,

I am trying to send the value of an image to another page,

Any ideas how i would do this?

Thanks,

Rob
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Posting a value to another page

Post by Celauran »

What do you mean by 'the value of an image'? What is it you're trying to accomplish?
Rob_Scott
Forum Newbie
Posts: 19
Joined: Mon Nov 14, 2011 6:08 am

Re: Posting a value to another page

Post by Rob_Scott »

I just want to pass the value of a variable to another page using a linked image.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Posting a value to another page

Post by Celauran »

You can use POST or GET, sessions, cookies; all depends what you're trying to do and how sensitive the data is.
Rob_Scott
Forum Newbie
Posts: 19
Joined: Mon Nov 14, 2011 6:08 am

Re: Posting a value to another page

Post by Rob_Scott »

I am using drupal and it is just the page number.

I want the number so i can populate a product page template dynamically without having to create a individual page for each product.

Thanks for the help.
Post Reply