Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirecting AFTER sending HTML 1

Status
Not open for further replies.

arlequin

Programmer
Sep 21, 1999
232
UY
Hello!

I know the location() function in PHP redirects sending HTML headers.

But... I want to redirect after sending some HTML to the client.

I used to code in ASP in this way (
Now, I'm using PHP and wanna know hot to redirect to a page, after sending some HTML to the client browser.

Thanks a lot. Arlequín
arlequin@montevideo.com.uy
 
Use the following meta tag. This will display the HTML first then redirect within the number of seconds you want.

<META http-equiv=&quot;refresh&quot; content=&quot;20;URL=somepage.php&quot;>

The &quot;20&quot; is the number of seconds to wait before redirecting.

Youre welcome.

-A
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top