Click here to get back home

Redirect to a new webpage

 HomeNewsGroups | Search | About
 comp.lang.php    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Redirect to a new webpage Paul.Lee.1971@gmail.com 07-18-2008
Get Chitika Premium
Posted by Paul.Lee.1971@gmail.com on July 18, 2008, 8:03 pm
Please log in for more thread options
Hi,
I'm doing some experimentation with php and was wondering the "best"
way to achieve this task:

I have an initial page that has a form, which, when completed, directs
to an intermediate webpage to process
the results of the form. The user is then directed back to the initial
page. Because I need a delay to enable
processing of the form data, I don't think the following will work:
<?php
header( 'Location: http://www.whispy.com/intro_page.php' ) ;
?>

I think the best way is, once the form processing is done, to do
something like
echo ( "<META HTTP-EQUIV=\"refresh\" content=\"0;URL=http://
www.whispy.com/intro_page.php\">";);

This seems a bit cumbersome, but would immediately reload the initial
page once the form stuff has been
sifted. Is there another, better way, without dealing with webserver
config scripts, which I don't have access to?

Thanks!

Paul

Posted by Jerry Stuckle on July 18, 2008, 9:02 pm
Please log in for more thread options
Paul.Lee.1971@gmail.com wrote:
> Hi,
> I'm doing some experimentation with php and was wondering the "best"
> way to achieve this task:
>
> I have an initial page that has a form, which, when completed, directs
> to an intermediate webpage to process
> the results of the form. The user is then directed back to the initial
> page. Because I need a delay to enable
> processing of the form data, I don't think the following will work:
> <?php
> header( 'Location: http://www.whispy.com/intro_page.php' ) ;
> ?>
>
> I think the best way is, once the form processing is done, to do
> something like
> echo ( "<META HTTP-EQUIV=\"refresh\" content=\"0;URL=http://
> www.whispy.com/intro_page.php\">";);
>
> This seems a bit cumbersome, but would immediately reload the initial
> page once the form stuff has been
> sifted. Is there another, better way, without dealing with webserver
> config scripts, which I don't have access to?
>
> Thanks!
>
> Paul
>

Paul,
I don't understand by what you mean by "needing a delay. But as long as
you don't send anything to the client beforehand (and the browser
doesn't time out), there shouldn't be any problem in using a header() call.

Did you try it? If so, what happened?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================


Posted by Paul Lautman on July 19, 2008, 3:44 am
Please log in for more thread options
Paul.Lee.1971@gmail.com wrote:
> Hi,
> I'm doing some experimentation with php and was wondering the "best"
> way to achieve this task:
>
> I have an initial page that has a form, which, when completed, directs
> to an intermediate webpage to process
> the results of the form. The user is then directed back to the initial
> page. Because I need a delay to enable
> processing of the form data, I don't think the following will work:
> <?php
> header( 'Location: http://www.whispy.com/intro_page.php' ) ;
>?>
>
> I think the best way is, once the form processing is done, to do
> something like
> echo ( "<META HTTP-EQUIV=\"refresh\" content=\"0;URL=http://
> www.whispy.com/intro_page.php\">";);
>
> This seems a bit cumbersome, but would immediately reload the initial
> page once the form stuff has been
> sifted. Is there another, better way, without dealing with webserver
> config scripts, which I don't have access to?
>
> Thanks!
>
> Paul

Do you just want to pupup something that says "Processing"?

If so, I'd have a hidden DIV and show it using a bit of javascript on
submitting the form.



Similar ThreadsPosted
Default redirect to webpage for authentication? March 28, 2005, 1:55 pm
How to move arrays from html webpage to webpage? January 15, 2007, 3:04 am
redirect / new website how to redirect old (google) links to new site ? November 7, 2006, 3:22 am
redirect to directory - php redirect or htaccess? June 25, 2006, 7:17 pm
Webpage to email December 17, 2004, 10:01 pm
Webpage via EMail January 27, 2005, 11:35 am
webpage screenshot? December 22, 2005, 5:19 am
Ideas ..Help with webpage April 8, 2006, 5:31 am
Save webpage September 9, 2007, 4:09 am
webpage hit counter in PHP January 20, 2008, 11:11 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap