Page 1 of 1

getting values

Posted: Wed Aug 06, 2003 9:16 am
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

Posted: Wed Aug 06, 2003 11:33 am
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']