• 0

PHP/Flash help Needed (easy)


Question

Hello i need someone that understands PHP, to see if you can help me out with this Flash/PHP e-mail form. Thanks! I know this is a simple code, but i dunno what's the matter, i can't receive the e-mails, if you get it to work, please!!!! send it to osme@bellsouth.net

Download the Code here, THANKS!

http://www.flashkit.com/movies/Basics/Inte...reth_D-6166.zip

;)

Link to comment
https://www.neowin.net/forum/topic/12968-phpflash-help-needed-easy/
Share on other sites

3 answers to this question

Recommended Posts

  • 0

This is what is inside the php doc

<?

// Enter your email address here

$adminaddress = "you@yourwebsite.com";

// Enter the address of your website here

$siteaddress ="http://www.yourwebsite.com";

// Enter your company name or site name here

$sitename = "yourwebsite";

// Gets the date and time from your server

$date = date("m/d/Y H:i:s");

// Gets the IP Address

if ($REMOTE_ADDR == "") $ip = "no ip";

else $ip = getHostByAddr($REMOTE_ADDR);

//Process the form data!

// and send the information collected in the Flash form to Your nominated email address

IF ($action != "")

{

mail("$adminaddress","Enquiry from www.yourwebsite.com",

"ENQUIRY FROM WEBSITE EMAIL FORM

Name: $inputName

Company: $inputCompany

Position: $inputPosition

Email: $inputEmail

Telephone: $inputTel

Requesting 24 hour callback? : $inputCallback

Message: $inputMessage

------------------------------

Logged Info :

Using: $HTTP_USER_AGENT

Hostname: $ip

IP address: $REMOTE_ADDR

Date/Time: $date","FROM:$adminaddress");

//This sends a confirmation to your visitor

mail("$vemail","Thank You for visiting $sitename","Your email has been recieved and will be processed shortly,"FROM:$adminaddress");

//Confirmation is sent back to the Flash form that the process is complete

$sendresult = "Done!";

$send_answer = "answer=";

$send_answer .= rawurlencode($sendresult);

// echo "$send_answer";

}

?>

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.