Ok, so i have a form that an ADMIN uses to registers a user (adds them to a database and gives them a username and password so they can log on to view their photos)

As soon as the form is submitted the admin is then directed to a page where they can start uploading photos for the user they JUST registered. They are directed to this page using the following:

header("Location:/upload/index.php?id=".$_REQUEST['email']);

The problem I'm facing is that I need to find a way to use $_REQUEST as a variable in my upload.php script(which is a separate file that actually processes the uploading). How would i pass that as a variable to upload.php?

any ideas???

If you want a variable to be available in multiple modules, then save it as a SESSION variable and then it will be available everywhere as long as the session is active.

SESSION variable worked well...thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.