AS2 contact form and php - works fine but only sends half of the text in the comments field ???

hi all - i have an AS2 contact form using php to send the info to my email address - it all works fine except this ..... rather than having an empty comments box in the flash movie i had added a whole bunch of feedback questions that the user can comment yes/no to in the comments box (my feedback questions were added into the input text box in cs3 so are there when the user opens the contact page .. i have set the maximum characters to 10000 so no worries that its that that is stopping it all coming through in the email ..... basically when i go to my form online and send it i get it through as an email but with only three quarters of the feedback text in it ...... i have tried a zillion ways a round this, tried other contact forms and php and always end up with the same problem ... any ideas any one ?
this is the AS....
stop();
a =0;
function validate () {
    if (from.length>=7) {
        if (from.indexOf("@")>0) {
            if ((from.indexOf("@")+2)<from.lastIndexOf(".")) {
                if (from.lastIndexOf(".")<(from.length-2)) {
                    a = 1;
                    // email is fine
function formcheck () {
    validate ();       
    trace(a);
    if (fname = "" or telno eq "" or comments eq "" or from eq "") {
        stop();
        error = "You have left blank fields, please fill in all fields, thank you";
    } else {
        emailcheck ();
function emailcheck (){
    if (a != 1){
        stop();
        error = "Email address not valid";
        } else {
        loadVariablesNum("mail.php3", 0, "POST");
        gotoAndStop(2);
..........this is the php
<?php
$adminaddress = "[email protected]";
$sitename = "Flash Site Form Mailer";
mail("$adminaddress","Info Request",
"A customer at $sitename has made the following enquiry\n
First Name: $name
Company Name: $company
Telephone: $telno
Email: $from\n
The visitor commented:
$comments
Logged Info :
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time:  $date","FROM:$adminaddress");
?>
any help much appreciated

i think you should not use $HTTP_USER_AGENT.
and use loadvars instead of loadvariablesnum:
stop();
a =0;
function validate () {
    if (from.length>=7) {
        if (from.indexOf("@")>0) {
            if ((from.indexOf("@")+2)<from.lastIndexOf(".")) {
                if (from.lastIndexOf(".")<(from.length-2)) {
                    a = 1;
                    // email is fine
function formcheck () {
    validate ();       
    trace(a);
    if (fname = "" or telno eq "" or comments eq "" or from eq "") {
        stop();
        error = "You have left blank fields, please fill in all fields, thank you";
    } else {
        emailcheck ();
var sendLV:LoadVars=new LoadVars();
function emailcheck (){
    if (a != 1){
        stop();
        error = "Email address not valid";
        } else {
sendLV.name=fname;
sendLV.telno=telno;
sendLV.company=company;  //assuming company is a variable in your flash
sendLV.comments=comments;
sendLV.send("mail.php3", "POST");
        gotoAndStop(2);
//..........this is the php
<?php
$adminaddress = "[email protected]";
$sitename = "Flash Site Form Mailer";
$from=?;//you need to define this variable
$name=$_POST['name'];
$telno=$_POST['telno'];
$company=$_POST['company'];
$comments=$_POST['comments'];
$body=
"A customer at $sitename has made the following enquiry\n
First Name: $name
Company Name: $company
Telephone: $telno
Email: $from\n
The visitor commented:
$comments";
mail($adminaddress,"Info Request",$body);
?>

Similar Messages

Maybe you are looking for

  • I can't view my photos large, it just opens to a blank screen when I click on the thumbnail...

    I just recently reinstalled everything on my computer and restored it from my hard drive but now, although the tumbnails are viewable and I can cut and paste the photos into other applications and view it in preview, I can't view it large, fullscreen

  • Why do we need Work Table in ODI???

    Hello All, Please help me on this.. Why do we need Work table in ODI??? Why ODI is creating c$_0table_name (work table)? Thanks Ravikiran

  • Auth user in ORIG_MAIL_ACCESS or ORIG_SEND_ACCESS?

    The FROM_ACCESS table provides the authenticated user address, but I want to construct a mapping (for metermaid throttling) that applies to the RCPT TO stage of the SMTP transaction. Is there a way to expose the authenticated user address to the ORIG

  • Pdf music files coming out fuzzy from pagemaker conversion

    Hello, We are using the new conversion to INdesign since our printer will not support pagemaker printing now with Indesign now on our computers.  When I try to convert a document with PDf Music files in it from pagemaker into Indesign they come out f

  • [SOLVED] '#' in url

    This PKGBUILD has a '#' character in its URL field.  By quoting the value or \-escaping the character, I can get the local package field to include the correct URL, but if I submit this to AUR, either the URL displayed on the package page is truncate