How to pass a PHP variable using the URL

后端 未结 6 513
暖寄归人
暖寄归人 2020-11-30 04:20

I want to pass some PHP variables using the URL.

I tried the following code:

link.php





        
6条回答
  •  -上瘾入骨i
    2020-11-30 04:47

    just put

    $a='Link1';
    $b='Link2';
    

    in your pass.php and you will get your answer and do a double quotation in your link.php:

    echo 'Link 1';
    

提交回复
热议问题