Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
There is two table one for product deatils and second for product images..

product detail is inserted in table and it redirect to another page for insertion of that product image..

i want to pass product id from one page to another page for insertion of that product image

How to pass product id?

Both table are different for product detail and product image

What I have tried:

i don't know how to pass id of product
Posted
Updated 14-Mar-18 1:33am

1 solution

You're using php - so look into $_SESSION.

One helpful hint: creating a session must be the ABSOLUTELY first thing on a page,
PHP
<?php session_start() ?>


PHP 5 Sessions[^]

There are other ways to do this (forms, AJAX, part of a URL target), but this is a "pure" answer to your question.

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900