Need scripting help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
McflysPlace
Forum Newbie
Posts: 5
Joined: Wed Aug 27, 2008 3:59 pm

Need scripting help

Post 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
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Need scripting help

Post 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
McflysPlace
Forum Newbie
Posts: 5
Joined: Wed Aug 27, 2008 3:59 pm

Re: Need scripting help

Post 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.
Post Reply