[FX.php List] [OFF] sending email confirmation

Andrew Denman adenman at tmea.org
Tue Mar 4 08:36:05 MST 2008


Roger,

 

Since the equal sign is a special character for URLs, it is a good idea to
not use them in your data if possible.  If you must use the equal signs, you
should URL encode them to ensure they work everywhere.

 

In FileMaker there is the GetAsURLEncoded() function, and in PHP there is
the rawurlencode() function.

 

Andrew Denman

 

From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Steve Winter
Sent: Tuesday, March 04, 2008 9:15 AM
To: 'FX.php Discussion List'
Subject: RE: [FX.php List] [OFF] sending email confirmation

 

Hi Roger,

 

I presume that the presence of the two == are a function of base64_encode.??
If not, what purpose do they serve.? 

 

Perhaps using an alternative encoding method (eg md5) might resolve the
issue, since it would not result in == characters.??

 

Cheers

Steve

 

  _____  

From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Roger Price
Sent: 04 March 2008 15:10
To: FX.php Discussion List
Subject: [FX.php List] [OFF] sending email confirmation

 

As part of a web project I am collecting data from our some of our past
students that we have lost contact with.

 

I want to try to ensure that we don't get too many malicious returns so I
intend to send a confirmation to the entered email address with an
activation link.

 

So far so good!

 

In order that the database record key is not blatantly obvious I'm using
base64_encode!

 

however when I mail a link such as:
<http://www.xxx.xxx.xx.xx..edit2.html?rec=MDAwMQ>
http://www.xxx.xxx.xx.xx..edit2.html?rec=MDAwMQ==

the two '=' characters that are generated at the end of this particular
record are omitted from the hyperlink when viewed in Outlook Express or
Windows Mail. Entourage only omits one! However Outlook and my webmail
program work perfectly.

If anybody resolved this problem before I would be grateful to know the best
way.

Roger 

 

  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20080304/135d3d2c/attachment.html


More information about the FX.php_List mailing list