[PHP] php and email

2004-03-23 Thread Steven Mac Intye
Hi all,

Im wondering if anyone can help me with this "problem"

I have a form with the following line of code;

$message .= "http://127.0.0.1/devsite/activate.php?member=$realname&hash=$initPass\";>Click 
here to activate\n";

What I actually get is the following output;

Click here to activate

You will see it is missing the "h" out of http and the "=" out of hash= 
... also the first charactor of the hash variable is missing.

Has anyone else seen this ? Know how to fix it ?

PLEASE HELP

Steven

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: [GLUG-chat] Re: email form

2004-03-23 Thread Steven Mac Intye
hehe,

Thanks ... I got it

I replaced my content type with the following:

Content-Type: text/html; charset=iso-8859-15

Now it works perfectly :))

Thanks all

Steven Mac Intye wrote:

Hi Ray,

Nope... this is what it outputs now.

activate.php?member=Steven+Mac+Intyre&hash95aea7a8aee0fdcc90d7e9893c75bb3

It simply adds "+" to the name ...

Ray Leach wrote:

On Tue, 2004-03-23 at 11:12, Steven Mac Intye wrote:

erm ... it is also removing the first charactor of the hash.

The correct hash is: 395aea7a8aee0fdcc90d7e9893c75bb3

PLEASE HELP

Steven Mac Intye wrote:


Hi all,

Please help me.

I have the following line in my code;

$message .= "http://127.0.0.1/devsite/activate.php?member=$realname&hash=$initPass\";>Click 
here to activate\n";


Try using urlencode to encode the values for member and hash.


But if I recieve the email, i get the following output;

Click here to activate

You will see that it is missing the "h" on http and the = just after 
hash ...

Any idea's ?

---
To unsubscribe: send the line "unsubscribe glug-chat" in the
subject of a mail to "[EMAIL PROTECTED]".
Problems? Email "[EMAIL PROTECTED]". Archives are at
http://www.linux.org.za/Lists-Archives/


---
To unsubscribe: send the line "unsubscribe glug-chat" in the
subject of a mail to "[EMAIL PROTECTED]".
Problems? Email "[EMAIL PROTECTED]". Archives are at
http://www.linux.org.za/Lists-Archives/
---
To unsubscribe: send the line "unsubscribe glug-chat" in the
subject of a mail to "[EMAIL PROTECTED]".
Problems? Email "[EMAIL PROTECTED]". Archives are at
http://www.linux.org.za/Lists-Archives/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php