PDA

View Full Version : An easy one, please help!


jtellesj
01-07-2003, 06:34 PM
An easy one, please help!

After setting up a simple form in Flash where the user is going to type in his name, last name and stuff I want format those variables with a hard return or a paragraph right on the "GET URL" expression to create a plain text formatted email. No... no CGI or anything like that.

The Expression looks like this:
"mailto:myemail@mydomain.com?subject=My Inquiry&body=" +inName+" "+inLast +
inEmail

How can I add a hard return between the inLast and inEmail variables so I get an email body like this:

Joe Doe
john@joesdomain.com


Thanks for help another ignorant beginner!

tg
01-07-2003, 06:44 PM
not sure which, but i think flash sees a hard return as '/r' or '/n'.

jtellesj
01-07-2003, 06:55 PM
I've tried "\r", "\r\n", newline and nothing works!

I thought this was an easy one! Thanks...

pichto
01-07-2003, 08:27 PM
I tried that :


getURL("mailto:myemail@mydomain.com?subject=My Inquiry&body=" add inName add newline add inLast add inEmail);


And it worked...

jtellesj
01-07-2003, 09:35 PM
That is SO weird.

I've tried all possible different codes to make that happen but it just doesn't happen.

I'm using Flash MX on a Mac and testing on both PC and Mac with Internet Explorer and Outlook.

Instead of getting the hard return I get the square character for missing characters or just nothing. I'm almost giving up on this!

jcgodart
01-07-2003, 09:55 PM
Hi,

You may try to escape() the body of your email:

GetURL("mailto:myemail@mydomain.com?subject=My Inquiry&body=" +escape(inName+" "+inLast + inEmail));