|
Posted by J.O. Aho on 06/26/07 20:38
Animesh K wrote:
> Hello All:
>
> This question is slightly off-topic, but hopefully someone has fiddled
> with this problem before.
This had been better posted at alt.php or some javascript nesgroup, depending
on what kind of solution you want
> A php script poem_fb.php is a separate file. I call it using a form to
> submit comments. Then the php form gives a redirect url which causes an
> extra reload of the page where the user is already present.
> Is it possible to get rid of the extra re-load? What is a better way to
> call the php script so that this reload can be avoided?
Of course, all depends on what kind of solution you want.
1. You can poem_fb.php include the page you want to show.
2. You can redirect the form to the page you want to show, if a $_POST value
been got by the page, it includes the poem_fb.php
3. you use ajax to send the comment, this way the user stays on the original
page all the time.
--
//Aho
[Back to original message]
|