Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2000-05-11
5
Medium Priority
?
176 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
[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
  • 2
5 Comments
 
LVL 16

Accepted Solution

by:
maneshr earned 360 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

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

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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…
Six Sigma Control Plans

597 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