Php flash mx mailform problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
MIKE777
Forum Newbie
Posts: 1
Joined: Fri Jan 03, 2003 11:32 pm

Php flash mx mailform problem

Post by MIKE777 »

:) Hi,

I am new to php and I uploaded a flash form with a simple php mailer form to send messages to my email,it doesn't seem to send anything,maybe it's the php code or a flash file action script error :?:
any advice to alter the php or action script advice would be greatly appreciated :D .Here is the link to the form :

http://maitek.t35.com/form.swf

here is the mailform.php code,exclude the opening and closing brackets:

[<?

/******************************************************
**
** PHP Mailer 2.0
**
** This script is easy to configure. Just change the variables below to
** suit your environment and PHP does the rest!
**
** http://www.bigjolt.com
**
*******************************************************/

/*******************************************************

Enter your site details below!

*******************************************************/

// Enter your contact email address here
$adminaddress = "mnoona@videotron.ca";

// Enter the address of your website here include http://www.
$siteaddress ="http://mai-tek.t35.com/mailform.php";

// Enter your company name or site name here
$sitename = "maitek";

/*******************************************************

No need to change anything below ...

*******************************************************/

// 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","Info Request",
"A visitor at $sitename has left the following information\n
First Name: $fname
Last Name: $lname
Email: $email
Company: $cname
Telephone: $telno\n
The visitor commented:
------------------------------
$comments

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("$email","Thank You for visiting $sitename",
"Hi $fname,\n
Thank you for your interest in $sitename!\n
Cheers,
$sitename
$siteaddress","FROM:$adminaddress");

//Confirmation is sent back to the Flash form that the process is complete
$sendresult = "Thank you for visiting <a href = \"$siteaddress\" target = \"_blank\"><u>$sitename</u></a>. You will receive a confirmation email shortly. ";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo "$send_answer";

endif;

?>]
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

maybe the answer is in here: http://forums.devnetwork.net/viewtopic.php?t=511
depending on your php version and settings
Post Reply