PDA

View Full Version : Frames or iFrame for posting


Larry770
08-08-2004, 10:48 AM
Hi,
Does anyone here know what the advantage would be in using iFrames vs using regular frames? Currently I have an HTML with frames which posts a PHP form in one of the frames when submitted (and thus only its own frame is automatically refreshed.) The reason for this is in order that the variables on the main HTML/JavaScript stay and do not refresh after the post. As far as I understand it, using an iFrame would do the same thing. Does anyone know which would make more sense?

Thanks,
Larry

Nightfire
08-08-2004, 11:20 AM
Not really a php question. Unless you want your whole site in frames, then don't use a normal frame, use an iframe

Larry770
08-08-2004, 12:38 PM
I know its awkward but thats how I have it setup right now (I didnt know about iframes.) Is it worth switching over? Will anything be gained other than convenience? (ie. will it speed up the post proccess? Will it *not* refresh the page automatically? etc.)