0

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.

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

1 Comment

still showing variables value in the URL bar like this localhost/xampp/test.php?Name=1&Home=2 I enter 1 in the Name field and 2 in the Home Field

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.