The plus sign, along with several other characters, have to be encoded when 
used in URLs.  So, your anchor tag should be:

  <A> href="/cgi-bin/itemdsc?ITEM=TRISUPER7&2BTEL"> .

Unencoded plus signs represent blanks.  That is why your CGI program is getting 
a blank instead of a plus sign.

See this link for more information about URL encoding:  
http://www.blooberry.com/indexdot/html/topics/urlencoding.htm

--
Mel Rothman, CGIDEV2 Author
http://www.easy400.ibm.it/en

Justin Houchin wrote:
>
> This is a multi-part message in MIME format.
> --
> [ Picked text/plain from multipart/alternative ]
> Hi everyone,
>             I have a CGI program that is dropping the '+' character out
> of my item number when it is read into the CGI Program. Here is the code
>
> To execute the CGI program this link is pressed.. <A
> href="/cgi-bin/itemdsc?ITEM=TRISUPER7+TEL">
>
> Here is the CGI Source.
>
> 0048.00 D Item            S             25A
>
> 0130.00 C                   Eval      Item = ZhbGetVar('ITEM')
>
> When line 0130.00 is executed, it should have TRISUPER7+TEL in the
> field, but it has TRISUPER7 TEL. As you can see it drops the '+'. What
> could be happening? Does the CGI program use a plus sign for something
> different? Thanks for the help.
>
> Justin Houchin
> Programmer and Web Developer
> ReliaTek, Inc
> justin@reliatek.com
>
> --
>




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.