Forum Moderators: phranque
<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.