Printer Friendly Version
Email this thread to a friend
|
Featured Web Site Template |
|
There are 0 guests and 2 members in the forums right now.
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
talk2kvj
Joined: Jun 14, 2004
# Posts: 1
|
Posted: 2004-Jun-15 01:30
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
|
Posted: 2004-Jun-16 08:51
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:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- 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
|
|