Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Just a simpel question (I think)....

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Just a simpel question (I think)....

Postby broer » Thu Aug 29, 2002 12:49 pm

I have just a simpel question I think...

There is a line:

echo("Your mail has been sent.<br><br><a href=\"".$HTTP_REFERER."\">go back.</a>\n");

How can I edit this so when I run this program it
will not result in a link but automatically go
a page back ??

Thanx....

Broer
broer
New php-forum User
New php-forum User
 
Posts: 12
Joined: Tue Aug 20, 2002 10:08 am

Postby Jay » Thu Aug 29, 2002 2:06 pm

Use this in the head page of your page:

<meta http-equiv="refresh" content="TIME;url=URL">

where time is the delay in seconds, and URL is the full URL of where you want the user directed!
Jay
 

Postby broer » Fri Aug 30, 2002 4:34 am

With this command it results in refreshing the same page
every X time.

I want to automatically direct to another page.
broer
New php-forum User
New php-forum User
 
Posts: 12
Joined: Tue Aug 20, 2002 10:08 am

Postby DoppyNL » Fri Aug 30, 2002 6:07 am

set the URL in the meta-tag to where you want to go after X seconds, the browser will the load that page after X seconds. Just like Jay said....
It's true that if you link to the same page after 5 seconds it will refresh every 5 seconds.

Greetz Daan
DoppyNL
 


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron