You are here: Re: OT: Php redirect query « HTML « IT news, forums, messages
Re: OT: Php redirect query

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

 

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

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