oatesj77
10-11-05, 06:56 PM
I've been stuck on this all day, I've mad a form in flash that should pass variables to a php script. I created 3 text boxes as text-input (name, email & content) and set the variable names as "name", "email" & "content"
the AS for my submit button was
on (release) {
loadVariablesNum("mail.php", "", "POST");
gotoAndStop (2);
}
this should pass all my variables to test.php, but I get nothing, I am using the same php script I have for my html form, same variables etc, placed side by side, the html works, but flash doesn't.
After messing with this for a few hours I decided to just see if the variables were coming through, created a file called test.php with the following:
<?php
$name=$_POST['name'];
$email=$_POST['email'];
$content=$_POST['content'];
?>
should output here:<br>
<? echo 'name: '.$name; ?> <br>
<? echo 'email address: '.$email; ?><br>
<? echo 'your message: '.$content; ?>
changed my flash submit to:
on (release) {
getURL("test.php", "", "POST");
gotoAndStop (2);
}
this should just pass the variables with POST to test.php where they would be displayed, but I get nothing, I tested with my html form to test.php and I get the variables displayed.
Can anyone help me out?
thanks
the AS for my submit button was
on (release) {
loadVariablesNum("mail.php", "", "POST");
gotoAndStop (2);
}
this should pass all my variables to test.php, but I get nothing, I am using the same php script I have for my html form, same variables etc, placed side by side, the html works, but flash doesn't.
After messing with this for a few hours I decided to just see if the variables were coming through, created a file called test.php with the following:
<?php
$name=$_POST['name'];
$email=$_POST['email'];
$content=$_POST['content'];
?>
should output here:<br>
<? echo 'name: '.$name; ?> <br>
<? echo 'email address: '.$email; ?><br>
<? echo 'your message: '.$content; ?>
changed my flash submit to:
on (release) {
getURL("test.php", "", "POST");
gotoAndStop (2);
}
this should just pass the variables with POST to test.php where they would be displayed, but I get nothing, I tested with my html form to test.php and I get the variables displayed.
Can anyone help me out?
thanks