Jump to content
Moin

want to display additional information of registerd user while uploading the products of same user

Recommended Posts

hi,

i have made a website where people resgister their details of them and products.

they have to enter the following details in form

Name of company

name of the product

company address

email id 

password 

mobile number contact

and 

brief details about their company 


after filling all details user is registered on website.

user can then login with email id and pwd.

now after login ..user will get a page where he can upload the photos of products images and their price, so now my question is that when he finishes uploading (|by clicking on upload button) the product images and price text box ..then on final uploaded webspage it should show all other things which he registerd before (company name , mobile number etc) along with images and price...hence the main question that user does not need to enter mobile and address while uploading images and filling proce ..but on the final page it should show mobile and address along with price and images..as user is not going to enter mobile and address again and again as he will have multiple products to upload.


thanks in advance .

Share this post


Link to post
Share on other sites

Easy. Just use sessions.

Sessions are user specific data stored on the server/site for an extended period of time. So they don't get deleted between requests. Browser sends session cookie on every request to identify which data in the session belongs to them.

 

session_start() ; // at the top of every page

//Store

$_SESSION["favcolor"] = "green";
$_SESSION["favanimal"] = "cat";

//Fetch

if (isset($_SESSION["favcolor"] ) && $_SESSION["favcolor"] ){
	return $_SESSION["favcolor"] ;
}


 

 

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.