Aurigma Forums
»
Legacy Products
»
Archive
»
Image Uploader
»
I'm using author name for upload folder, now trying to get PictureGallery to work
Rank: Member
Groups: Member
Joined: 5/1/2004(UTC) Posts: 14
|
I've got my upload setup like this so that uploaded images go into a folder named after whatever is put in the author field: http://www.aurigma.com/F...ShowPost.aspx?PostID=538Now I'm trying to get the PictureGallery to work with no luck. This is what I have for defining the gallery path: Code://This variable specifies relative path to the folder, where image gallery is located.
$author = $HTTP_POST_VARS ['Author'];
$galleryPath = realpath("Gallery" . "/" . $author);
Edited by user Monday, February 18, 2008 4:29:30 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
When you are redirected to PictureGallery.php, Author variable is not available in POST request (because you do not post anything to this page). The simplest way to get what you want is to pass author name through query string, i.e. you redirect to the similar URL: http://www.yourdomain.co...lery.php?Author=quattro. Author=... part should be generated in JavaScript to paste proper author name. In PictureGallery.php you extract author value using $_GET array: $author = $_GET['Author'] Please let me know if it helps.
|
|
|
|
Rank: Member
Groups: Member
Joined: 6/21/2006(UTC) Posts: 15
|
Hello,
I have followed the following problem. I can get the following working/not working: NOTE: im talking about the author field in the index.php ver 4.0
Upload.php when using the HTTP_POST_VAR or $_POST for author, it will work.
Gallery.php when using HTTP_GET_VAR or $_GET for author, it will work.
NOW: how can i get both working togther?
|
|
|
|
Aurigma Forums
»
Legacy Products
»
Archive
»
Image Uploader
»
I'm using author name for upload folder, now trying to get PictureGallery to work
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.