Solved

send variables(at least two) from cgi to perl script does not work

Posted on 2000-05-11
5
169 Views
Last Modified: 2010-03-05
when i send variables from a cgi scipt to another perl script i make a mistake i think.
at work it works whereas at home the same file does not work.

i have two variables and sending them to perl script as;
<img src=sample51.pl?arama=$ara;timelimit=$timelimit>
and in perl script;

$query = new CGI;
$aranan = $query->param('arama');
$timelimit = $query->param('timelimit');

i use that method in order to get variables. but all variables are in the $aranan variable.
f.e. if timelimit=3 and ara=EM (in cgi)then $aranan (in perlscript) becomes EM;3 whereas $timelimit is NULL.

What can be problem?
Thanks in advance.
0
Comment
Question by:camasuvi
  • 2
  • 2
5 Comments
 
LVL 16

Accepted Solution

by:
maneshr earned 90 total points
ID: 2802105
you need to have a & between the two variables instead of ;

i.e

<img src=sample51.pl?arama=$ara;timelimit=$timelimit>

SHOULD BE...
<img src=sample51.pl?arama=$ara&timelimit=$timelimit>

0
 

Expert Comment

by:ihunter
ID: 2802338
Also, if this works at the office and not at home, are you using the same Web server?  A less robust web server may not handle certain CGI requests the same as a full blown Apache/IIS web server.
0
 

Author Comment

by:camasuvi
ID: 2803254
Adjusted points from 85 to 90
0
 

Author Comment

by:camasuvi
ID: 2803255
yeah, this is my fault.
thanks.
0
 
LVL 16

Expert Comment

by:maneshr
ID: 2804474
most welcome :-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now