When i run it locally using the perl interpreter, it prints the "ckey". The output isprint "<FORM NAME="info" action="../../../../cgi-bin/decision.cgi" met +hod="POST"> /n"; print "<select NAME="clown"> /n"; foreach $ckey(sort (keys(%DECISION))) { print "<option>$ckey /n"; } print "</select> /n"; print "</FORM> /n";
So nothin wrong with getting the key values from hash. But on the webpage, the Form is empty. when i see the the page source in browser, its like<FORM NAME="info" action="../../../../cgi-bin/clotdecisions.cgi" metho +d="POST"> <select NAME="clown"> <option>b01 <option>b02 <option>b03 </select>
what happened to the options. can one of you mighty monks help me out with this please. i was stuck here for a long time. I would appreciate any help extended.. thanks in advance Update1: Thanks for the suggestions monks. But none of these worked. I replaces the relative path with absolute path. Comin to the way keys in %decisions are generated, The Decisions db file already exists.<FORM NAME="info" action="../../../../cgi-bin/clotdecisions.cgi" metho +d="POST"> <select NAME="clown"> </select>
There are no errors on the server error-log regarding this. Regarding what monk. Matija asked, "how you're generating the values and keys of the %DECISION hash". I donno how they have been generated. This file was created by an other person, using DB_file. Because of version compatibility problems, i had to replace the "Dbmopen" with "tie". I donno whatelse to mention here. The file permissions, path etc are fine. Coz, as I told you the cgi script displays everything, excepting the print statements associated with Db_file. Thats what i showed in the output. the form drop-down menu wouldnt show the options. it is empty. when the script can retrieve the key locally and outputit, why not on the webpage. I can't find any obvious reason, but i'm deperate. If you need more information to sort this out, kindly ask the info you're lookin for. thanks in advance.tie %CLOTDECISIONS, 'DB_File', "$fdbl[2]clotdes$typedb";
In reply to script working locally, but not on server by talk2kvj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |