This content has been marked as final. Show 5 replies
Ahh i think i found the answer if im using POST method do i need to export the movie to the webfolder first ?
Or can i simply test in browser and it should work then ?
Ok flash confuses me more and more lol i exported the swf and then opened it in my browser all items display but the getURL() function is not working , However when i test in browser from within the development environment it works fine :S
Thanks Pinky. ;)
You will want to test the send form live from your server... and yes get url from the browser wont work unless test live from your server as well.
Hi i tested it from a page on my localhost i setup you can access it here
The square block is the button i havent labelled any fields or buttons yet.
The username field has an instance name of username should i change that to UserInput and the var input field be username ?
i tried changing the Var field in Flash to username and instance name of UserInput and still i cant retrieve the values from the PHP page?
When the PHP page loads and opens you will see in the url username="your input" so i know flash is passing it to the page when i manually append it to it :S
Just a bit more information when i trace(Dataout) i receive username=my input in the trace im just wondering is that the correct format for posting to a page ?
it opens the PHP in a new page also
Thanks for your reply :)
I'm not sure why it's not passing the values for those fields, take a look at what I use for a simple form mail in flash:
use different loadvars instances to send and receive.