Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / June 2006



Tip: Looking for answers? Try searching our database.

LoadVars, PHP and mysql

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
toft - 22 Jun 2006 11:28 GMT
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
Motion Maker - 25 Jun 2006 17:20 GMT
> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.