Saim Imtiaz
Saim Imtiaz

Reputation: 1

how to post variables to php using Flash Form?

I am using this code. The input text fields names are Name and Home.

on (release) {
    getURL("test.php", "", "POST");
}

And the test file is

<?PHP

$a=$_POST['Name'];
$b=$_POST['Home'];`

echo "$a";
echo "$b";

?> 

But it is showing the variables values in URL bar.

Upvotes: 0

Views: 323

Answers (1)

There is error on your code. Don't include the variables inside quotes. Try this code instead.

<?php

$a=$_POST['Name'];
$b=$_POST['Home'];

echo $a;
echo $b;

?> 

[or]

Use the LoadVariables function instead of getURL Check the link here. http://www.kirupa.com/developer/actionscript/flash_php_email.htm

Upvotes: 1

Related Questions