If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

Saving Path in Session?

I'm currently coding a registering form for my brother and i'm having some issue with the uploading section.

I have a form (With name/email etc) and a Upload Video - Click here < This opens a new window where people can browse for a video and select it for upload -

The uploading part works - it checks for things i want it to check for, which is perfect but i need it to do 2 things after it has succesfully uploaded.

1. Save the path of the video uploaded in a Session or something els that i havnt thought about which you can help me with.

2. Close the upload window and make the "click here" link unclickable.

The 2nd part should be easy enough if it can check if a certain Session is set - if so that person wont be able to upload a video until he fills out the entire form and then clicks "Create" which is when it will upload the path (from nr. 1 Session) to Database along with all the other information - once thats don't it should remove all Session.

//Here we check that $ok was not set to 0 by an error
if ($ok==0)
{
Echo "Sorry your file was not uploaded";
}
if (file_exists("upload/" . $_FILES["file"]["name"]))
{
echo $_FILES["file"]["name"] . " already exists. ";
}