473,503 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Meta-tag Redirect?

I was wondering if the there was a meta tag that would cause a
standard browser to reload a URL "immediately"?

The reason why I want to do the is as follows. I have a PHP script
that does some processing of user forms, the submit button takes the
user back to the same URL (with different CGI data). This is ok
because I don't want the user bookmarking anywhere between when the
first form is started and the last form finished. Once the forms have
all been filled out and verified by the PHP Script, I would like to
send the user to a different URL that is static. A URL that can
easily be book-marked. I thought the best way to do this was for the
PHP script to generate a page with a meta-redirect in it.

Do you think this is the best way to accomplish this or is there a
better way. I can't just give the last submit form a different URL,
because The data needs to be processed and verified before deciding
whether to keep the user in the script or to spit him/her back into
normal web-space. Some answers may keep the user in the script. Any
suggestions?
Jul 17 '05 #1
2 2544
JAS

What about using:

header("location : mypage.php");

http://us2.php.net/header

J

Steven Feil wrote:
I was wondering if the there was a meta tag that would cause a
standard browser to reload a URL "immediately"?

The reason why I want to do the is as follows. I have a PHP script
that does some processing of user forms, the submit button takes the
user back to the same URL (with different CGI data). This is ok
because I don't want the user bookmarking anywhere between when the
first form is started and the last form finished. Once the forms have
all been filled out and verified by the PHP Script, I would like to
send the user to a different URL that is static. A URL that can
easily be book-marked. I thought the best way to do this was for the
PHP script to generate a page with a meta-redirect in it.

Do you think this is the best way to accomplish this or is there a
better way. I can't just give the last submit form a different URL,
because The data needs to be processed and verified before deciding
whether to keep the user in the script or to spit him/her back into
normal web-space. Some answers may keep the user in the script. Any
suggestions?

Jul 17 '05 #2
.oO(Steven Feil)
[...] I thought the best way to do this was for the
PHP script to generate a page with a meta-redirect in it.
Nope.

Use standard redirects: don't break the back button!
http://www.w3.org/QA/Tips/reback
Do you think this is the best way to accomplish this or is there a
better way.


http://www.php.net/header

header('Location: http://www.example.com/newsite.html');

Micha
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3991
by: Cezary | last post by:
Hello. I was read PHP manual, but i'm not sure yet. Here is my meta tags in html: <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-2"> <META HTTP-EQUIV="Expires"...
1
2578
by: Darren Blackley | last post by:
Hi there I have documents that I want to automatically add additional meta tags to. The documents already have some meta tags and I want to keep them all together, so I want to add my new meta tags...
19
3835
by: Christian Hvid | last post by:
Hello groups. I have a series of applet computer games on my homepage: http://vredungmand.dk/games/erik-spillet/index.html http://vredungmand.dk/games/nohats/index.html...
5
12075
by: RodneyDunes | last post by:
My site did validate and now it doesn't. The error I get is the following: document type does not allow element "META" here ....nt-type" content="text/html;charset=iso-8859-1"> Can someone...
16
2482
by: Edward | last post by:
Hi All, I am having huge problems with a very simple dotnet framework web page (www.gbab.net/ztest3.aspx) , it does NOT render correctly under Apple's Safari. The DIV's do not align amd float as...
0
7091
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7342
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6998
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7464
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5586
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4680
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1516
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
391
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.