Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
quattro  
#1 Posted : Saturday, June 19, 2004 1:57:00 AM(UTC)
quattro

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=538

Now 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

Andrew  
#2 Posted : Monday, June 21, 2004 1:52:00 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 866

Thanks: 2 times
Was thanked: 26 time(s) in 26 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.
Hacim  
#3 Posted : Thursday, June 22, 2006 5:39:06 PM(UTC)
Hacim

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?
Users browsing this topic
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.