Hi
I installed php and mysql. After i run the website, the URL of pages are like:
c_id=4?m=4
How can i include page title in the URL's ?
Thanks
hammad
Moderators: macek, egami, gesf

<html>
<head>
<title><?php echo $_GET['title']; ?></title>
</head>
<body>
<!-- Body Goes Here -->
</body>
</html>


$pageTitle = urlencode('Title of the Page');
if(empty($_SERVER['QUERY_STRING']) || strpos($_SERVER['QUERY_STRING'],$pageTitle) === false) {
if(empty($_SERVER['QUERY_STRING'])) {
$queryString = $pageTitle;
}
else {
$queryString = $_SERVER['QUERY_STRING'] . '&' . $pageTitle;
}
header("Location: ?{$queryString}");
exit;
}


Users browsing this forum: No registered users and 1 guest