You are here: Re: frames [lame] « HTML « IT news, forums, messages
Re: frames [lame]

Posted by Mitja Trampus on 01/12/04 11:28

Jake wrote:
> In message <hnjephtr6lb5.j0k6trp9swzs.dlg@40tude.net>, a@b.c writes
>
>> Hi,
>>
>> Got some problem:
>> I've got 3 frames e.g.
>>
>> <frameset rows="80%,20%">
>> <frameset cols="50%,50%">
>> <frame src ="stats.php" name="left">
>> <frame src ="flag.php" name="right">
>> </frameset>
>> <frame src = "command.php" >
>>
>> </frameset>
>>
>> and i want to use data from little form (below) in command.php in 2 other
>> frames. How can i send data form this form and use it in other frames? If
>> use POST i send it only to 1 frame :(
>>
>> [command.php]
>>
>> <FORM METHOD = POST action="sojusz.php" TARGET = "right" >
>> Name:
>> <INPUT TYPE = TEXT NAME ="player" SIZE = 25>
>>
>> <INPUT TYPE = HIDDEN NAME = "stage" VALUE = 1" >
>> <INPUT TYPE = SUBMIT VALUE = "Search">
>> </FORM>
>>
> You'll probably get a better response from one of the Javascript groups,
> which is what you are going to have to use.

Since you're already using php, I'd suggest you stick with
that - it's much more accessible for search engines and a
presumably noticable percentage of other users, although a
slight bit heavier on the server.

Do something like:

[main page]:
<frameset>
<frame src="topframes.php" name="top">
<frame src="bottom.php">
</frameset>

[bottom]:
<form action="topframes.php" target="top">

[topframes]:
A php that receives GET parameters and passes them on to the
two pages in question.
<frameset>
<frame src="topleft.php?get_parameters">
<frame src="topright.php?get_parameters">
</frameset>

For this to work, however, POST is out - you'll have to use
GET. Workarounds for POST are possible but ugly.


And, as many others suggested - if you're using php already,
making the move from frames to dynamically appended menus
would not exactly hurt.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация