dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: ASCII code for a line separator in an input text box? [F8]

  1. #1

    ASCII code for a line separator in an input text box? [F8]

    Hi,

    What's the ASCII code for a line separator in a Flash input text box?

    I've got an email form on my Flash site made using the KIRUPA tutorial that sends its variables to a PHP script (see attached) that consequently sends an email to me containing the variable results. The problem is that the email I get doesn't include line breaks, e.g. if someone fills in the email form like this:
    Hi
    How are you?


    The email I receive displays the message like this:
    HiHow are you?

    A way I could resolve this issue would be to work out the ASCII code for a line seperator in a flash input text box is and make my PHP script replace this character with line feed '\n'

    Any ideas?

    Peace

    Leao

    PHP Code:
    <?
    $to 
    'mail@mydomain.org';

    $subject 'St. Patrick\'s message';

    $body "You have received a message via the St. Patrick's website. The details of the message are listed below...\n\nName: $yourname\nEmail: $youremail\nMessage: $yourmessage";

    $body wordwrap($body70);

    $headers "Content-type: text/plain; charset=iso-8859-1\r\n";
    $headers .= "From: mail@mydomain.org\r\n";
    $headers .= "Return-Path:mail@mydomain.org\r\n";
    $headers .= "Reply-To: $youremail\r\n";
    $headers .= 'X-Mailer: PHP/' phpversion()."\r\n";

    mail($to$subject$body$headers"-fmail@mydomain.org.org");
    ?>

  2. #2
    Any ideas?

    cheers,

    Leao

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