getting values

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
zuzupus
Forum Commoner
Posts: 70
Joined: Thu Jul 17, 2003 4:54 am

getting values

Post by zuzupus »

hi,
i created dirmodify.phtml and how i can get the values in text field called New directory
for eg, when i select radio button let say download and this link having HTML inside it
so when i select this link then
New directory download
HTML Information its checked as this downlaod have html file

if you dont mind shall i post the code

please visit this link

http://server2.vitodesign.com/scripts/dirmodify.phtml

thanks
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

ich spreche bisschen deutsche, and you obviously understand english since your post is in it so i'll respond in it...
i'm getting the display not the code, do the links cause a dl? (i don't wanna play around and mess something up)

what i can't find is the method the form uses. i also can't find the name of that element the whole horizontal scroll out to timbuktu)

assuming that you use post (switch $_POST to $_GET if you use get) and the text feild for the new dir is new_dir (change to whatever you use) then to get it you'd use $_POST['new_dir']

you're accessing the post array. in php 4.1 it was changed from $HTTP_POST_VARS to $_POST so find out youre version of php first. you might need to use $HTTP_POST_VARS['new_dir']
Post Reply