Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use PHP GET Method in URL? [closed]

Tags:

html

php

get

I have index.php?stol=XY. Now I want to open gotovo.php with same 'stol' like in index.php. This is my code:

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

What am I doing wrong?

like image 439
Karlo Sintic Avatar asked Apr 25 '26 23:04

Karlo Sintic


1 Answers

try this

<a href="<?= "gotovo.php?stol=".$_GET['stol'] ?>">Link1</a>
like image 198
ponciste Avatar answered Apr 27 '26 14:04

ponciste



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!