|
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
[Back to original message]
|