Using LoadVars.send() I insert info into a mysql database. I then click a
button and
the updated db content is shown in a textfield. Problem is that a HTML file is
auto-opened in the browser.
When using LoadVars.sendAndLoad() I can still insert info into the database,
but I can NOT update the info
in the textfield. For some reason the "old" db content is loaded again.
Flash and PHP files are in same folder on server.
I dont have a clue on this one and would appreciate some help.
Oeyvind
> the updated db content is shown in a textfield. Problem is that a HTML
> file is
> auto-opened in the browser.
If your server script is PHP and probably all severscripts, be sure they do
not send back whitespace outside of the scripting tags. White space includes
tabs, space bar, return keys.
> When using LoadVars.sendAndLoad() I can still insert info into the
> database,
> but I can NOT update the info
> in the textfield. For some reason the "old" db content is loaded again.
Once you have the serverscript returning to Flash and not generating a new
web page, this problem will probably be resolved barring hidden bugs you
have not yet seen.

Signature
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
> Using LoadVars.send() I insert info into a mysql database. I then click a
> button and
[quoted text clipped - 12 lines]
>
> Oeyvind
toft - 25 Jun 2006 21:00 GMT
Thanks Lon
The problem was solved by including session_create() - session_destroy() in my
PHP scripts.
Its still a mystery thou why type of as send method affects a totally
independent call to another PHP script
that loads the db info the Flash form.
Oeyvind