Hello,
I'm building a flash contact form with amfphp and I send the vars in a LoadVarsObject to PHP
The problem is that I don't know how to call these vars in PHP.
This is what I have in PHP but it obviously doesn't work:
function sendContactForm($email, $message, $topic)
{
$email = $POST["email"];
$message = $POST["message"];
$topic = $_POST["topic"];
$to = "info@myaddress.be";
$subject ="Contact form request from myaddress.be";
if( mail($to, $subject, $message))
return "0k";
else return "Error";
}
This is what I get in the NetConnection Debugger:
Call-Project.sendContactForm({message:hello, subject:testing, email:info@test.be, topic:request information})
MethodName: "Project.sendContactForm"
Parameters (object #2)
.....[0] (object #3)
..........email: "info@test.be"
..........message: "hello"
..........subject: "testing"
..........topic: "request information"