So I have this URL that should inform the server with PHP language to get an image and text underneath.
<a href="foto_max.php?kart=foto_duczynski&foto=sztokholm_duczynski_00&temat=Stare miasto." target="_self">
I dont know almost nothing about PHP so I have this "kart=foto_duczynski" part left in the URL even though it does absoloutly nothing, but it looks that it was for specifying a folder that existed. I dont need that part in the URL because the foto "sztokholm_duczynski_00.jpg" is now moved by me to just the folder "foto".
Here is the part of the .php page that is the code in foto_max.php that brings the picture and text:
<?
if ($kart)
$kartoteka = $kart;
else
$kartoteka = "foto";
$foto = $kartoteka . "/" . $_GET['foto'] . ".jpg";
echo"
<table border='0' cellpadding='0' cellspacing='5'>
<tr align=\"center\">
<td width=\"770\" style=\"background: url('grafika/loading.gif') no-repeat top\">
<img src='$foto' border=0><br>
</td>
</tr>
<tr>
<th width='770' height='19' bgcolor='#808040' class=\"top_menu\">
$temat
</th>
</tr>
</table>
";
include("stopka.php");
?>
Here you can see the php-esque "$temat" which I think is what should be replaced by the string coming from the URL, in this case:
Stare miasto.
. You can see this string in the whole URL (again):
<a href="foto_max.php?kart=foto_duczynski&foto=sztokholm_duczynski_00&temat=Stare miasto." target="_self">
What should I add in the foto_max.php code so that the $temat code brings the string from the URL info?
What I have tried:
I have tried to change the URL with sending of php info to this URL:
<a href="foto_max.php?foto=sztokholm_duczynski_00&temat=Stare miasto." target="_self">
This made no change to get the string. However it made the code cleaner because that folder part didnt work anyway.