HighDots Forums  

OT: Php redirect query

alt.html alt.html


Discuss OT: Php redirect query in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Animesh K
 
Posts: n/a

Default OT: Php redirect query - 06-26-2007 , 03:48 PM






Hello All:

This question is slightly off-topic, but hopefully someone has fiddled
with this problem before.

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?


More details:
-------------

javascript: Needed (nothing funky there, except some onclick events).

URL: http://stutimandal.com/gif_misc/indr...ma_stotram.php

The page can be found at the above link (sorry about bad aesthetics, I
need to improve the icons and the floated layer style).

Clicking on contact reveals the form. Clicking on abort removes the form
away. Clicking on Send will send an email to me (don't worry about
flooding me, just say alt.html in the text and I will delete the email).

Right now validation is not present (in a proper way). I will add the
validation script later.

I can email the php script if needed.

Best regards,
Animesh

Reply With Quote
  #2  
Old   
Animesh K
 
Posts: n/a

Default Re: OT: Php redirect query - 06-26-2007 , 05:26 PM






J.O. Aho wrote:
Quote:
Animesh K wrote:
snip

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.


I am using #2 in the above list, I think. I want a no-reload type
solution (mimicking Ajax) using php. I wonder if that is possible.

Thanks for the reply,
Animesh


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.