| View previous topic :: View next topic |
| Author |
Message |
SBBcarl
Joined: 30 May 2008 Posts: 1
|
Posted: May 30, 2008 3:04 pm Post subject: Help Passing Variable |
|
|
Hello,
I have a question for you guys
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 |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1107 Location: Undisclosed location
|
Posted: Jun 02, 2008 6:35 am Post subject: |
|
|
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 |
|
 |
|
|
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
|