getting a dir name from $_POST[]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
SteveO
Forum Newbie
Posts: 12
Joined: Wed Nov 19, 2003 2:27 am

getting a dir name from $_POST[]

Post by SteveO »

$dir_name = "$_POST[directory]/"; <--- this is the code

I need it to stop looking for the directory in the file that sent the directory name, how can i do this?
ghost007
Forum Commoner
Posts: 49
Joined: Sat Nov 22, 2003 10:10 am

not sure that I got your question

Post by ghost007 »

but it should be:

$dir_name = $_POST['directory'];

cheers
Siech
User avatar
SteveO
Forum Newbie
Posts: 12
Joined: Wed Nov 19, 2003 2:27 am

Post by SteveO »

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/webkin/public_html/steve/list_func.php on line 5
User avatar
SteveO
Forum Newbie
Posts: 12
Joined: Wed Nov 19, 2003 2:27 am

Post by SteveO »

directory is the name of the value that is being sent to that page.......
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post by Nay »

You might want to show us more code, so we can figure out what 'is' going on.

-Nay
Post Reply