Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 25th, 2004, 04:10 AM
beano78 beano78 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 1 beano78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Flash-PHP form variables problem

I have a form in flash that uses loadVariablesNum("form.php", 0, "POST"); to send the information to a PHP file, which in turn sends it to a specified email. (I've tried with objects and sendAndLoad also, but same result).

This form is really simple. The problem is that the text in the recieved email does not handle any text formating such as the return (next line). Additionally, foreign characters typed in the form comes back as strange symbols in the email.

Example form input:
This is
a test message.
Foreign chars æøå

comes back in the email as:
This is a test message.Foreign chars æøå

How can this be fixed?
You can view the form at URL

the send button has the following source code:
on (release) {
if (name == "" || message == "" || email == "") {
err.text = "Please fill in all fields";
stop();
}
else if(email.indexOf("@")==-1){
err.text = "Email address is invalid"
stop();
}
else {
loadVariablesNum("form.php", 0, "POST");
gotoAndStop(2);
}
}

the php code is as follows:
<?

$to = "youremail@domain.com";
$msg = "$name\n\n";
$msg .= "$message\n\n";
$mailheader = "From: $email\n\n";

mail($to, $subject, $msg, $mailheader);

?>

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Flash-PHP form variables problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT