Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Es Win on September 1, 2009 at 10:44 am

    Hi everybody,

    My name win i am a newer in this forum,
    and i have on question to ask you all by converting the code the
    flash form.

    I used to try many form on my server but it is not working.
    But the support tell me this instruction.
    and i do not know to code

    please help me….. 🙂

    Using a PHP script you may accept feedback from your website visitors and get the results emailed to you. You can use the sample script provided by tweak it a bit to suit your requirements.
    You would need to change the Email address in the field $from to any Email address on the domain name on which you are incorporating this script. For example, if your Domain Name is abc.com, then you would define the From Email address as some-name@abc.com. This Email address need not be existing on the Mail Server of abc.com, however, the domain name in the $from field has to be yours. You may use an Email address such as Do_Not_reply@abc.com.
    The value in the $mailto field needs to be changed to the Email address, where email containing the data submitted through the form needs to be delivered.
    Once the visitor provides feedback, he/she can then be re-directed to another page on your website. In order to achieve this, you need to mention the path to the HTML file in the $file field in the script. Alternately, you can display a message to the visitor thanking him/her for the feedback. Such messages can be displayed in a new page like thanks.htm. Such a page can also contain other information as deemed necessary.

    Sample Script
    $gcount)
    {
    $message_body=$pstr;
    mail($mailto,$subject,$message_body,”From:”.$from);
    include(“$file”);
    }
    else
    {
    $message_body=$gstr;
    mail($mailto,$subject,$message_body,”From:”.$from);
    include(“$file”);
    }
    ?>

    http://www.creativeideasolutions.com

    Es Win replied 16 years, 12 months ago 2 Members · 3 Replies
  • 3 Replies
  • Curtis Thompson

    September 1, 2009 at 5:14 pm

    hello…

    welcome to the forum, but sorry – with the info you’ve given here, it’s pretty hard to offer any helpful suggestions…you could have a variety of issues that are not even related to the script. does your server support this version of php? does it send email correctly outside of this script? did you change the emails before you tried to use it (to avoid relay denial errors)?

    if you can provide any more information and verify that your server is sending mail correctly outside of this script, that would be handy!

    sitruc

  • Es Win

    September 3, 2009 at 12:03 pm

    Hi Curtis Thompson,
    i am very happy to see your reply,
    actually on my server i used to try other flash contact form that is working fine with other server but this flash contact form i used on my server it does not work. and i asked to my server supporter about this issue they said: i should follow their sample script that i attached to u.

    Below is the php script that i connected from the flash contact form. I think i should be working well on my server, but not.
    Note:”This script work well on other server.”

    \r\n”;
    $headers .= “Reply-To: ” . $_POST[“email”] . “\r\n”;
    $headers .= “Return-path: ” . $_POST[“email”];
    $message = “”;
    $message .= “Name: “;$message .= “\n”;
    $message .= $_POST[“firstName”];$message .= “\n\n”;
    $message .= “Last name: “;$message .= “\n”;
    $message .= $_POST[“lastname”];$message .= “\n\n”;
    $message .= “Email: “;$message .= “\n”;
    $message .= $_POST[“email”];$message .= “\n\n”;
    $message .= “City: “;$message .= “\n”;
    $message .= $_POST[“city”];
    $message .= “\n\n”;
    $message .= “Address: “;$message .= “\n”;
    $message .= $_POST[“address”];$message .= “\n\n”;
    $message .= “Phone: “;$message .= “\n”;
    $message .= $_POST[“phone”];
    $message .= “\n\n”;
    $message .= “State: “;$message .= “\n”;
    $message .= $_POST[“State”];$message .= “\n\n”;
    $message .= “Type: “;$message .= “\n”;
    $message .= $_POST[“Type”];$message .= “\n\n”;
    $message .= “Message: “;
    $message .= “\n”;
    $message .= $_POST[“Message”];

    if(@mail($sendTo, $subject, $message, $headers))
    {$answer=’ok’;
    echo “answer=”.$answer;
    }
    else
    {
    $answer=’error’;
    echo “answer=”.$answer;
    }
    ?>

    Regards,
    WIN

    http://www.creativeideasolutions.com

  • Es Win

    September 3, 2009 at 12:19 pm

    Hi Curtis Thompson,

    One more thing, how can i insert meta tag for search engine in flash website?

    Thanks & Best regards,
    WIN

    http://www.creativeideasolutions.com

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy