cgi problem with "gt" and "lt"

N

Nick Wedd

Here is the piece of my code that causes a problem:

foreach $cc ( param() ) {
$col = param($cc);

and here is a piece of my cgi argument list:

gl=6&gt=6&hn=6&mx=6&ni=8

It all works except for when $cc (the key) is "gt" or "lt". I can guess
what is going on, but I have no idea what I should do about it. Can
someone please advise?

Nick
 
P

Paul Lalli

Nick said:
Here is the piece of my code that causes a problem:

*What* problem?
foreach $cc ( param() ) {
$col = param($cc);

and here is a piece of my cgi argument list:

gl=6&gt=6&hn=6&mx=6&ni=8

It all works

"works" *how*?
except for when $cc (the key) is "gt" or "lt". I can guess
what is going on, but I have no idea what I should do about it.

Should do about *what*?
Can someone please advise?

Advise about *what*?!

No where in this post have you told us either what you're *trying* to
do, nor how what you're actually doing is failing! How is anyone
supposed to help you fix your problem, when you haven't told anyone
what the problem is nor even what the goal is?!

Please read the Posting Guidelines for this group. Seriously. Right
now. They are posted here twice a week. A simple search will reveal
them. Please do not reply until you read them.

Paul Lalli
 
T

Tad McClellan

Nick Wedd said:
Here is the piece of my code that causes a problem:

foreach $cc ( param() ) {
$col = param($cc);


What problem does it cause you?

and here is a piece of my cgi argument list:

gl=6&gt=6&hn=6&mx=6&ni=8

It all works


What does "works" mean when you say it?

That is, what did you intend it to do?

except for when $cc (the key) is "gt" or "lt". I can guess
what is going on, but I have no idea what I should do about it. Can
someone please advise?


I advise that you tell us what you wanted it to do, and what it
is doing that is different from what you wanted it to do.

WAG:
I sure hope you don't have an "eval EXPR" in your code that you
haven't shown us...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top