You are here: Re: frames and php « PHP Programming Language « IT news, forums, messages
Re: frames and php

Posted by Erwin Moller on 03/13/07 10:06

irfan.mohammed@gmail.com wrote:

> Dear all,
>
> I need some help in frames and php.
>
> i have
>
> -------------------------
> ----------------------------------------
> | Button |
> Frame
> 1
> | |
> ----------------------------------------
> --------------------------
>
>
> ----------------------------------------
> Frame 2
>
> -----------------------------------------
>
>
> i have two different outputs,output1 and output2.
>
> when ever i press the button in form i should get output1 in frame 1
> and then after 10 seconds i should get the
> output 2 in frame2.
>
>
> can any one please help me.
>
> Regards
> Irfan

Hi,

PHP is not really aware of your frames.
PHP just gets a request in and produces an answer (HTML most of the time).

So this is maybe not the best newsgroup to ask.

To 'post a form to another frame', or better put: 'to ask the browser to
display the results of a post in another frame' use the 'target' - keyword
in your form.
eg:
<form action="bla.php" method="POST" target="anotherframenamehere">

To create a timing effect (like your 10 secs), use Javascript, look for a
function window.setTimeOut().
Beware however, you'll need JavaScript for this, which of course CAN be
disabled in the client browser.

Regards,
Erwin Moller

 

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

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