Using post of get
Posted: Fri Apr 30, 2010 6:56 pm
Hi. I am a bit confused. I am trying to send a variable from php to as3, but dont know how to assign it in php. My HTML is simple
It is the name variable I want sent. In my php, I am doing
It is the value part I am having issues with. I dont know if I need to use post or get to assign it to myVar, or how I can even do this,
Any help appreciated.
cheers
Code: Select all
<html>
<head><title>Test Page</title></head>
<body>
<h2>Data Collection</h2><p>
<form action="getName.php" method="post">
<p>Your name:
<input type="text" name="name" /></p>
<p><input type="submit" /></p>
</form>
</body>
</html>Code: Select all
<param name="FlashVars" value="myVar=<?php "$name" ?>" /> Any help appreciated.
cheers