Heelo I have a problem with rewriting urls, as none seems to work and I am not even sure if it's possible in this case.
I have got a dictionary page, where I want keys listed to be displayed, and when you click on them, a new page opens with the value. I have got something liek this:
<?php
$dict = array(
array("key1", "value1"),
array("key2", "value2"),
);
if ($_GET['dictId'] != "")
{
echo ($dict[$_GET['dictId']][1]);
}
else
{
$i=0;
foreach($dict as $row)
{
echo ("<li><a href=\"index.php?dictId=".$i."\">".$row[0]."</a></li>");
$i++;
}
}
?>
Well this work fine, but I want the urls at the top to be static, like I want them to display the key. I heard you can do it straight away in php, rather than later in .htaccess.
Also, I would like for the displayed value, to have a title which matches the key title.
Could anyone help me with this please?
Thanks alot!