Gossamer Forum
Home : Products : DBMan : Customization :

Strange Character in URL

Quote Reply
Strange Character in URL
I created a new sub-routine called sub currency in the html.pl file.

I added the following link to the sub currency routine:

$db_script_link_url & currency=1

The reason I have a spaces in there is because when I put the link codes together, this is whatI get:

$db_script_link_url¤cy=1


In the db.cgi file, I put the following codes in the sub main routine:

Code:
elsif ($in{'currency'}) { if ($per_view) { &html_currency; } else { &html_unauth;

This is what I get when I click on the link:

Code:
http://anthrotech.com/cgibin/classifieds/index.cgi?db=opps&uid=default¤cy=1

Anyone seen this before? If so, am I missing something here. I have added MANY sub-routines in the same manner as I have stated above with no glitches.

Thanks for any assistance you can provide.

Regards,


------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited August 20, 1999).]

[This message has been edited by Eliot (edited August 20, 1999).]

[This message has been edited by Eliot (edited August 20, 1999).]

[This message has been edited by Eliot (edited August 20, 1999).]
Quote Reply
Re: Strange Character in URL In reply to
Forget it...I fixed it by renaming the sub-routine. It is weird that "currency" causes that. Is "currency" a special name or variable in Perl??

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Strange Character in URL In reply to
Not that I know of. It's not listed in any of my Perl books. Very odd.


------------------
JPD





Quote Reply
Re: Strange Character in URL In reply to
Thanks, Carol.

I have never seen that character in the three years of web design and progamming. I searched through all the DBMAN files to find any occurrences of "currency" or something similar that would throw it off...but could not find any. Also, I thought it could be a character limit set by the web server...but I have other sub-routines that its names are much longer (without underscore characters).

Hmm....Very weird.

Wink (should be a puzzled smiling face)

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited August 21, 1999).]
Quote Reply
Re: Strange Character in URL In reply to
hunch your '&' is acting as a bitwise operator - strings and intergers are interchangeable in perl -

as to finding out why its not worth the effort.

but then again if you ever want to use: DEC 0164 you're part way there.

warning!! my hunches are only right 20¤ of the time I mean 20%.

------------------
JGU