[flashpro] simple PHP form

Manmeet Bilkhoo manmeet at liquidstorms.com
Mon Sep 19 12:43:08 EDT 2005


I have found out it is to do with flash not being able to write \n 
...instead writing \r. I don't know how this makes a difference but in my 
php script I have added this one simple line and it has solved the problem!

$message = str_replace("\r", "\n", $message);

str_replaces the incoming variable message containing any \r with \n and the 
email message is retained in full.

Thanks for your input

mb


----- Original Message ----- 
From: "Christine Paulsen" <christine at photoeyeview.com>
To: "'Mailing list for professional Flash designers and developers'" 
<flashpro at muinar.org>
Sent: Monday, September 19, 2005 3:40 PM
Subject: RE: [flashpro] simple PHP form


It may be as simple as removing the space between $msg and the period.
Hope this helps.

Here is a sample of the code I use for mailing:

$msg = " POS animations developed for Vodafone to be displayed on plasma
screens in stores around the UK \n";

$msg.= " Each animation coincided with current promotions and would be based
on the pre-conceived print marketing material. \n\n";

$mailheaders = "From: Photo Eye View <christine at photoeyeview.com>\n";

$mailheaders.= "Reply-To: $email\n\n";

mail("christine at photoeyeview.com", $subject,$msg,$mailheaders);

-----Original Message-----
From: flashpro-bounces at muinar.org [mailto:flashpro-bounces at muinar.org] On
Behalf Of Manmeet Bilkhoo
Sent: Sunday, September 18, 2005 1:53 PM
To: Mailing list for professional Flash designers and developers
Subject: [flashpro] simple PHP form

Hi,

i'm creating a simple flash enquiry form using PHP, all is success except
when I receive emails, any text after carraige returns seems to dissapear.
Ha anyone encountered this?...any solution?

Example...

full message should be:
POS animations developed for Vodafone to be displayed on plasma screens in
stores around the UK.
Each animation coincided with current promotions and would be based on the
pre-conceived print marketing material.


what I get is:
POS animations developed for Vodafone to be displayed on plasma screens in
stores around the UK.

PHP code:

<?php
$to = "info at myemail.com";
$msg = "$name writes:\n\n";
$msg .= "$message\n\n";
mail($to, $subject = "Website enquiry", $msg, "From: Website UK:
$name\nReply-To: $email\n");
?>





------------------------------------------------------------------
send message to the list:               mailto:flashpro at muinar.org
[FlashPro] list info, subscribe, archive:   http://flash-list.com/
There's also a WebPro mailing list:     http://webdesign-list.com/
cutting-edge sounds for flash:            http://flash-sounds.com/


__________ NOD32 1.1219 (20050916) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com


------------------------------------------------------------------
send message to the list:               mailto:flashpro at muinar.org
[FlashPro] list info, subscribe, archive:   http://flash-list.com/
There's also a WebPro mailing list:     http://webdesign-list.com/
cutting-edge sounds for flash:            http://flash-sounds.com/



-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.2/105 - Release Date: 19/09/2005




More information about the FlashPro mailing list