PDA

View Full Version : PHP help


DoddyUK
04-18-2003, 03:32 PM
Hi. I've already asked this question on 3 other forums, but no-one has a good answer.

I'm trying to create a PHP which uploads to either of four directories. The directory depends on what is selected in a Select combo box. The four values of the combo box are "art", "fanfic", "poetry" and "original", the names of the four directories.

Could anyone tell me where to start please? I have a very basic knowledge of php, but I'm still a n00b. I'll donate mb$100 to anyone who comes up with an answer. Thanks for your time.

CivicRacer
04-24-2003, 02:48 PM
It depends on the scripts itself, if your trying to make your own it's easier that way.

DoddyUK
04-25-2003, 01:22 PM
The problem is though is that I'm a complete n00b and I can't remember what's what in PHP. That's why i need help.

adsy81
05-15-2003, 07:03 PM
If you have already made a script, the easiest way is the make the value of the menu box the directory and in the script make the directory from the menu box.

for example. $file = "/" . $_POST['menudir'] . "/" . $_POST['filename'];

I am pretty sure something like that would work, just off the top of my head.