A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: Flash Forum with PHP

  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    1

    Flash Forum with PHP

    Hi There,

    I have been out of the loop for a few years, but I am slowly trying to get back to doing some flash and web work.

    I have a piece of code that I produced in class a few years back, it is a customer feedback form that I am trying to modify for customers at my new job to use to place a order.

    I basically just have to add more Input boxes to the code I have, and format the email that will be sent out with the added elements.

    the form worked before I tried adding another line to it.

    If anyone could tell me what I am doing wrong it would be greatly appreciated.

    I will add my .fla


    here is my PHP code:

    THANKS!

    <?PHP

    $to = 'scbray19@gmail.com';
    $subject = 'Test Forum';

    $message .= 'From:'.$_POST["from"]."\n\n";
    $message .= 'Email:'.$_POST["email"]."\n\n";
    $message .= 'Address:'.$_POST["snail"]."\n\n";
    $message .= 'Phone:'.$_POST["phone"]."\n\n";
    $message .= 'Company:'.$_POST["company"]."\n\n";
    $message .= 'Comments:'.$_POST["comments"]."\n\n";

    $additionalHeader .= "From: Flash Feedback<name@email.com>\n";
    $additionalHeader .= "reply-To:$_POST[email]";

    $OK = mail($to, $subject, $message, $additionalHeader);
    if($OK){
    echo 'sent=OK';
    }else{
    echo 'sent=failed$reason='.urlenconde('There seems to be a problem with the server. Please try later.');
    }
    ?>
    Attached Files Attached Files

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