A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: text from flash tp php to email

  1. #1
    Senior Member
    Join Date
    Mar 2005
    Location
    london/ny
    Posts
    126

    text from flash tp php to email

    Hey all

    Hoping for some help with this. I have some input text in flash, which I am sending to php which sends an email with the text as the body. My problem is that I am losing the line spaces in the email. When I trace out the string in flash, the line spaces appear in the output window just fine.

    here's my actionscript:

    Code:
    var pcLB:RegExp = /\r\n/g;
    var macLB:RegExp = /\r/g;
    _URLFriendlyMessage = _URLFriendlyMessage.replace(pcLB, "\r\n");
    _URLFriendlyMessage = _URLFriendlyMessage.replace(macLB, "\r\n");
    here's my PHP:

    Code:
    $message = nl2br($message);
    $mail->setText($message);
    The email comes out with no linebreaks, just all the text running into itself. Can anyone help?

    Thanks!

    Emma.

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    may I suggest to replace nl2br by urlencode for a test - this way you see what flash is actually sending

    Musicman

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center