Yet another PHP question, but not quite [FMX]

Hey all,
I have attached some files that I have been working on.
They have been made following a tut from Flash_db.
I have not been able to test the PHP script yet so no probs with that , but the problem lies in my Flash movie.

The submit button uses a getURL action, but Flash cannot seem to find the PHP file, even though they are in the same folder.

Please someone take a look.
I know there have been an endless string of questions regarding PHP lately,and I feel embaressed asking this, but I think this is more a case of "what is wrong with the getURL action here "??!?!?!???

Thanks in advance . . . . .

you can’t test php files locally. You have to have them on your server in order for them to run correctly. once you upload them it should work fine…

Would that be why the getURL action is not working?

well I don’t see where you are using a getURL action. You are using loadVariables or loadVariablesNum() either one, but yes that is why its not working. You can’t test locally like that…especially if you don’ thave apache installed… just pop them onto a server quick and you can test them out…

Thanks Jubba. . .
The getURL is on the submit button in the “form” mc . . .

nope chico… there is no getURL code in your entire movie. You wouldn’t use getURL in this scenerio anyway because you want want to open another window, you just want to load the variables in and out. your code on the button is

loadVariablesNum()

OOOOOOOOOKKKKKKKKK!!
I feel like a bit of a dumba** now… and I’m not gonna make any excuses for myself.
Thanks a lot man . . . .

Heya Davehead and Jubba, not to barg in on this post or what Jubba has just said but I have just finished a flash which loads vars from a mySQL db via a php script.

Ive used LoadVars Objs throughout, and Dave just as an idea you can use the sendAndLoad of the LoadVars obj to do searches on your db. This works where you store the keyword or words in a LoadVars obj send it to the db via a php script then recieve the results (from you sql query statement) in another LoadVars obj

Eg.


$enevelope.keyword="Davehead's CV";
$envelope.sendAndLoad("http://www.thedaveheadsite.com/search.php", 
$envelope_received);

(i like the way Laurent has made AS vars using the php ‘$’ sign :slight_smile: )

Anyway see this tute
http://www.kirupa.com/developer/actionscript/asandphp.htm

Thanks both you guys, but I am a baby when it comes to server-side scripting, so I am still tryig to get my head around this PHP thing…

Thats cool Dave,

Anyway ive included some good sites for you to have a look at.
=), they should help you out. The bottom 2 especially have forums setup just like Kirupa.

[list]
www.w3schools.com


www.dbforums.com
[/list]

Thanks, I’ll have a look . . .