PDA

View Full Version : blank strings passing to php


sideburn
05-30-2005, 11:58 AM
I've got an apache server running with php and mysql.

But php is not taking my variables passed in from my flash movie.

When I do this:

trace(RegName); //all is good
loadVariablesNum("http://192.168.1.100/Register.php?RegName="+RegName, 0);

A new entry gets added into my sql database but the name field is blank.

So everything is talking to the database but all the variables being passed
are blank. Its also doing this with flash remoting. Its got something to do
with my server. Any help would be appreciated.

Thanks

CyanBlue
05-30-2005, 03:31 PM
Howdy and Welcome... :)

Make sure that you are referencing the Flash variable correctly within the PHP like $_POST['RegName'] or $_GET['RegName'] to avoid that...

sideburn
05-31-2005, 01:40 AM
thanks,

I added $RegName = $_GET['RegName']; to the php file
and now it works.

This was a tutorial file that USED to work without that. why is that?

CyanBlue
05-31-2005, 08:00 PM
I think this page explains what has been changed to the new version of PHP... (Not PHP 5 but somewhere between 4 and 5... :D)

http://wps.aw.com/aw_webwizard/0,6065,1133800-,00.html