Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
There are 0 guests and 2 members in the forums right now.
Reflects user activity within the last 5 minutes
Moderator(s): Prowler, jcokos
Member Message

talk2kvj
Joined: Jun 14, 2004
# Posts: 1

View the profile for talk2kvj Send talk2kvj a private message

Posted: 2004-Jun-15 01:30
Edit Message Delete Message Reply to this message

Hi Everybody,

I have a perl cgi script thats not working.


print "<FORM NAME="info" action="../../../../cgi-bin/decision.cgi" method="POST">n";
print "<select NAME="clown">n";
foreach $ckey(sort (keys(%DECISION))) {
print "<option>$ckeyn";
}
print "</select>n";
print "</FORM>n";

When i run it locally using the perl interpreter, it printsthe "ckey" The output is
<FORM NAME="info" action="../../../../cgi-bin/clotdecisions.cgi" method="POST">
<select NAME="clown">
<option>b01
<option>b02
<option>b03
</select>

So nothin wrong with getting the key values from hash. But on the webpage, the Form is empty. when i see the source its like
<FORM NAME="info" action="../../../../cgi-bin/clotdecisions.cgi" method="POST">
<select NAME="clown">
</select>

what happened to the options. can anyone help me out with this pleasee. i was stuck here for a long time.
thanks in advance




Prowler
Staff
Joined: Aug 14, 2000
# Posts: 1832

View the profile for Prowler Send Prowler a private message

Posted: 2004-Jun-16 08:51
Edit Message Delete Message Reply to this message

Looks like a path/permission problem if it works from the command prompt and refuses to assign the value from the associative array.

Check that the declaration of the associative array %DECISION is within the main segment of the clotdecisions.cgi.




You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. This is a private forum, for which you do not have permissions.

If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

If you cannot find this message, click here to Re-Send it.

If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions