Okay, I've been screwing with this on and off for a couple of days and I'm certain it has to be something I'm missing but I think I've hit that point where a person just can't see the mistake after staring at it for such a long period of time.
Here's the ActionScript snippet from the flash movie (it's very basic):
// This clears the form if they use the reset button
reset_button.onRelease = function()
{
contact_name.text = "";
contact_email.text = "";
contact_subject.text = "";
contact_message.text = "";
}
send_button.onRelease = function()
{
if( contact_name.text != "" && contact_email.text != "" &&
contact_subject.text != "" && contact_message.text != "" )
{
// here you send contact variables to a server-side page
getURL("http://www.mydomain.com/test.php", "_blank", "POST");
}
}
Here is the test.php page where I'm simply trying to catch the variables and see if they'll echo back to me:
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
echo $_POST['contact_name'];
echo $_POST['contact_email'];
echo $_POST['contact_subject'];
echo $_POST['contact_message'];
?>
I turned the error reporting on to try and get something more specific but I just get the standard "Notice: Undefined index: contact_name in /home/xtremefo/public_html/mydomain.com/test.php on line 6" message for each of the variables I'm trying to catch.
What am I missing? I know this is a PHP forum but I figured there were folks out there that had some experience trying to retrieve data from a flash movie form in a php script.
Thanks in advance!