this is my code and what i get... i'm accessing this through this url
http://192.168.0.2/php/test2/te*****...a&subject=test
it grabs the correct stuff from the database, but doesn't put it into
flash.
this is what i have in the flash file...
onClipEvent (load) {
// assuming you have a personal web server and PHP installed
locally
loadVariables("http://192.168.0.2/php/test2/test.php", this,
"GET");
}
named the textboxes, accordingly, 'name', 'email', and 'content'
and the php....
<html>
<head><title>Flash Test</title></head>
<body>
<br><br>
<?php
//phpinfo();
error_reporting(E_ALL);
$user = $HTTP_GET_VARS['user'];
$subject = $HTTP_GET_VARS['subject'];
$link = mysql_connect('localhost', 'mailer', 'mailer321')
or die('Could not connect: ' . mysql_error());
mysql_select_db('mailer') or die('Could not select database');
$query = "SELECT * FROM email where name = '$user' and subject =
'$subject' order by id desc limit 1";
$result = mysql_query($query) or die('Query failed: ' .
mysql_error());
while ($rows = mysql_fetch_array($result)) {
$name = $rows['name'];
$email = $rows['subject'];
$content = $rows['content'];
}
print "&name=$name";
print "&email=$email";
print "&content=$content";
mysql_free_result($result);
mysql_close($link);
?>
<div align="center">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="760" HEIGHT="430" id="test" ALIGN=""><PARAM NAME=movie
VALUE="test2.swf"><PARAM NAME=quality VALUE=high>
<param name="name" value="<? echo $name ?>">
<param name="email" value="<? echo $email ?>">
<param name="content" value="<? echo $content ?>">
<PARAM NAME=bgcolor VALUE=#EEEEEE><EMBED src="test2.swf" quality=high
bgcolor=#EEEEEE WIDTH="760" HEIGHT="430" NAME="test" ALIGN=""
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
</div>
</body>
</html>
outputs this
&n******@test.ca&email=test&content=test
but no content in the flash text boxes....
any ideas??