[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Perl CGI param() function not getting POST variables

Posted on 2009-07-08
3
Medium Priority
?
1,854 Views
Last Modified: 2013-12-25
I am trying to port a huge amount of code to my laptop for testing.  The live system and test systems are Perl 5.8.7 on IIS.  Until an hour ago it was going well and I could read POST variables.  I changed nothing in the configuration.  Now I cannot read POST variables using param().  This is very weird.  

I have simplified the code below.  On my live system, when I click "POST working", I see "SUBMIT: POST working".  On the test system I see only "SUBMIT:".  If I click the "GET working" button on either, I see "SUBMIT: GET working".

Any ideas?  Unfortunately, I cannot change the param() to use something like $q->param(), etc., as there are hundreds of files...
use CGI qw(:standard);
 
 
print "Content-type:text/html\n\n";
 
print "SUBMIT: ". param('submit');
 
print<<EOF;
 
<form method="POST" action="test.pl">
				POST FORM
<input type="submit" name="submit" value="POST working">
</form>
 
 
<form method="GET" action="test.pl">
				GET FORM
<input type="submit" name="submit" value="GET working">
</form>
 
EOF

Open in new window

0
Comment
Question by:glassgiant
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 39

Accepted Solution

by:
Adam314 earned 1500 total points
ID: 24807394
I don't see anything with the code that looks wrong.  What web browser are you using?  Can you try a different web browser.  Can you try shutting down, and restarting the web server?  Or rebooting the machine?
0
 
LVL 1

Author Comment

by:glassgiant
ID: 24807674
GAHR!  I tried in Firefox (was using IE) and it worked.  I shut down IE and restarted it.  Now it's working!
0
 
LVL 1

Author Closing Comment

by:glassgiant
ID: 31601284
Thanks for the quick response.  I usually tell users to restart when weirdness happens.  I should have taken my own advice...
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question