TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 05-16-2008, 08:27 PM   #1 (permalink)
The Visitor
 
Join Date: May 2008
Location: good'ol unites States.
Posts: 3
Thanks: 0
JMHein is on a distinguished road
Default working with Iframes in php

I am very new to php and have no idea how to do what I would like to do, or even if I can.
I would like to have a web page were the menu and the main content are each in there own iframes, and when some one clicks a menu item it will ether refresh the main content with new data leaving the same menu, or refresh the menu with a new menu leaving the main content the same.
I am thinking that would require javascript but I don't know any more javascript then I do php yet.
So any idea on how I could do this or is it even possible to do this.
( I know that using php I could simply hard code a ton includes in with with a bunch of if statements that would load "Modules" so to speak. those modules would then act as the new html pages each one having a menu and a main content, but that would be way to complicated for what I want to mess with. and would simpler if I just stuck to normal static html pages.)

also any way to have a form in frame 1 that submits it's data to the page displayed in the same frame and have that frame refresh with the new data taken in to account?
example a chat page for a clan/guild. were the online game they all play is loaded in a gameframe, and the chat is loaded in a chat frame, each frame would have to act as 2 different tabs/windows.. were there would be different session IDs for each and cookies too. to loggin the chatframe would first load a loggin page and then would log the user in, and then refresh the chat frame with the main chat page. with out upsetting the other frame there by keeping the gameframe's SID and such in tact and letting some one login to the chat and the game at the same time with out one messing the other up with a page wide refresh, when the game resets the session on a page wide refresh.

if you read that whole thing thanks, and if you can help me, thanks again
JMHein is offline  
Reply With Quote
 



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 09:21 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design