Forum Moderators: phranque

Message Too Old, No Replies

How to automatic refresh a url without click

How to automatic refresh a url without click.

         

xbl01234

9:08 am on Aug 26, 2007 (gmt 0)

10+ Year Member



Hello;
My question is as following;
How to automatic redirect a url without click, and the url needs to be dynamic as well.
I tried to use the meta refesh tag as following, but i have not idea how to make it dynamic.

<meta http-equiv="refresh" content="2;url=http://webdesign.about.com">.

I am trying to create a dynamic url to let user post their new thread like this forum has.
like this:
[forums.devshed.com...]

And my logic to do that as following.

1) In the .htaccess file, write down the following;
RewriteEngine On
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule ^([^/]+)/([^/]+)/?$ display.php?name1=$1&name2=$2

2) In the index.php
if the form has submited
{
get the values from the submit form;
Save the data;
get the Thread_Id from database;

Automatically and dynamic to Redirect url base on Thread_ID and subject;
I tried to use the meta refresh tag, but i could not make it dynamic

for example
[mysite.com...]
}
else{
submit forum and the action="index.php"
}
3) In the display.php
select data from database and display it.

The text with bold is my problem want to solve.

Could any one give me some idea, please.