Use php get method in url?

Do I have index.php? stol = XY. Now I want to open gotovo.php with the same "stol" as in index.php. This is my code:

<a href="<?php "gotovo.php?stol=".$_GET['stol'] ?>">Link1</a>

What am I doing wrong?

+3
source share
1 answer

try it

<a href="<?= "gotovo.php?stol=".$_GET['stol'] ?>">Link1</a>
+1
source

All Articles