SibSoft Ltd.
Development Services
software products
 RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
EZYWebhost - Cheap XUpload & XFileSharing 100% campatible hosting

AJAX upload progress bar

File sharing script
Help Passing Variable

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload
View previous topic :: View next topic  
Author Message
SBBcarl



Joined: 30 May 2008
Posts: 1

PostPosted: May 30, 2008 3:04 pm    Post subject: Help Passing Variable Reply with quote

Hello,

I have a question for you guys Smile

My site that im working on requires you to be logged in and it passes a session variable to each page. So when you look at the URL it will say like (upload.php?s=s039fkeutkdif). If that session doesnt match the record in the database for that user, it logs them out etc.

What i want to do is make the upload form pass the session variable to the cgi script so when it redirects the user to post.php it appends the session var on the url (post.php?s=s039fkeutkdif).

Can this be done?

Thanks
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 1107
Location: Undisclosed location

PostPosted: Jun 02, 2008 6:35 am    Post subject: Reply with quote

Well...if your authorization handle sessionID from POST request it's very easy: just add hidden input to your upload form like
Code:
<input type="hidden" name="s" value="...">

and replace ... with your PHP SessionID variable (sure rename file to upload_form.php).

Then upload.cgi will add this "s" variable to POST request.
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group