generate, redirect...

I need some quick as possible help! Please.

I have a simple html form with an action (go.php). On the go.php page as of right now I have a script that creates a directory and copies files into that directory. The directory name will be created based on what the user inputted into the html “galleryname” field.

I need to add a little more code to the “go.php” page. I need to generate a .php file (or something to hold links). Let me try to explain a little better.

For example, I need the .php file when generated to display something like this:

$username = "albums/galleryname/gallery/index.php"

username is part of a membership script I have installed. So I can pull up their username once the user is logged in.
galleryname will be added to the generated .php file from the html form value after submission.

Pretty much once the user logs in they will see a link. If they click on that link it will take them to their page. The link on the page would have to locate their $username in the .php file then once its located it will redirect them to their page.

I hope I explained it well enough to understand.
I really hope someone can help me out of this.

Tim

OK, so I got go.php to generate a file and add data. All I need now is when the user clicks on the link it needs to to locate the $username in the .php file and redirect that user to that page. Based on the username.

Tim

Everytime I post something on forums asking for help… its seems like I solve my own problems a little after haha.

Problem solved!

Tim

Sponsor our Newsletter | Privacy Policy | Terms of Service