Page 1 of 1

Need scripting help

Posted: Wed Aug 27, 2008 4:12 pm
by McflysPlace
I am trying to make a php script that will load a form, take entry, then pass the information into an html tag and load said tag without refreshing the page.

There is a special property that needs to be applied to this particular script. I need it to be static. The html tag is supposed to call a .swf file. I need that file to be untouched when the user changes pages.

I was thinking it out, and I thought it may be easier to have that php script load the pages, but I run into a snag in my arcade. My arcade runs in php (it has over 500 pages). It would take like a year to change all the coding. Is there a way around this?

http://www.mcflysplace.com -- homepage
http://www.mcflysplace.com/arcade -- arcade
nyahguy@gmail.com -- email address

Re: Need scripting help

Posted: Wed Aug 27, 2008 4:18 pm
by califdon
McflysPlace wrote:I am trying to make a php script that will load a form, take entry, then pass the information into an html tag and load said tag without refreshing the page.
You are describing AJAX. Read: http://www.w3schools.com/Ajax/ajax_intro.asp

Re: Need scripting help

Posted: Wed Aug 27, 2008 9:31 pm
by McflysPlace
Thank You!

But, there's still the other issue. Do you know how I could have a .swf playing and load a new page without losing the .swf 's state? It would definitely suck to have to find your place over and over again.

Note: the 500+ page issue was fixed. Upon further review of my html pages, it turns out that they all load the majority of their information from an external .php template file. Using that I can easily edit all five hundred pages by tinkering with only three.