You are here: Re: Using the = in a string - newbie help, TIA « PHP Programming Language « IT news, forums, messages
Re: Using the = in a string - newbie help, TIA

Posted by Andy Hassall on 07/13/06 18:34

On Wed, 12 Jul 2006 23:01:10 -0400, CB <xxa@zxx.com> wrote:

>ARG! I was just trying to add a link to this formmail script. What
>gives. Can't find any documentation concerning the '=' sign.
>
>Here's what I tried and what I got.
>
>$content .= "REMOTE ADDR:
>http://ws.arin.net/cgi-bin/whois.pl?queryinput=". $REMOTE_ADDR."\n";
>
>result:
>REMOTE ADDR: http://ws.arin.net/cgi-bin/whois.pl?queryinput$.88.95.11
>
>I'm sure there's a simple way to get the equal sign to print correctly.
>THANKS.

Your email is probably quoted-printable encoded, but you're assigning a plain
unencoded string to it. quoted-printable uses "=" as a special character to
mark the start of encoded characters - it's "=" followed by two hexadecimal
digits representing the character code, which is why it's eating the = and the
first two digits of the IP address. How to fix this depends on what you're
using to send the email - you either need to actually encode your string, or
tell your email function to use a different encoding header in the email.

http://en.wikipedia.org/wiki/Quoted-printable

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация