sending variables from flash to PHP


hi everyone,
i have problem while sending variables flash php
here code:

submit.onpress = function ()
{
c = new loadvars ();
c.nme = "myname";
c.sendandload ("getvars.php", reply, "post");
}

php code:

<?php
$name = $_post['nme'];
print "your name ". $name . ".<br>";
?>

what doing wrong here.
i getting error saying notice: undefined index: name in \xxx\getvars.php on line 2

please me. in advance

2 things notice

1. never initialize variable "reply" sendandload.
2. need pass url-encoded string of variables ampersand delimited. typically return string echo("&result=1&msg=your%20name%20is%20".$name.".%3cbr%3e&");

your error relates information not getting passed correctly. use $_request flash-php communication, though shouldn't make difference. have seen people use $_request testing purposes, , switch $_post when finished.


More discussions in Adobe Animate CC - General


adobe

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support