Session Variables...between pages.
| From: | Ryan Marrs | Date: | Fri, 16 Nov 2001 19:25:25 +0000 |
| Subject: | Session Variables...between pages. | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-10454@lists.php.net to get a copy of this message | ||
Here's the problem. I've got an upload script, attached to a message forum.
When the user goes to post a message, they have a link to upload files.
When they click the link, it opens a new window with the upload form, and
that form handles all the uploading. I then need to pass the filename it
uploaded back to the original message form without refreshing. I thought
perhaps sessions could do this, but apparently I was mistaken. In
conclusion, when the user uploads the file, I need it to pass the filename
back to the original page without refreshing the original page, so that it
may dump it to SQL. I was going to post this to the PHP-SQL list, but I
feel that's not necessary, since the SQL portion of the script is working.
I suppose I could write the filename and the session variable to another
temporary table, and pull via the $PHPSESSID, but I think there's got to be
an easier way to do this. I'm open to all possibilities, so fire away!
Thanks in advance for any assistance.
Ryan