this is the code in firstpage.php
$test = "hello";
echo "<a href = 'secondpage.php?var = $test'>nextpage</a>";
how can i get back the variable $test’s value in secondpage.php
this is the code in firstpage.php
$test = "hello";
echo "<a href = 'secondpage.php?var = $test'>nextpage</a>";
how can i get back the variable $test’s value in secondpage.php
//firstpage.php
$test = "hello";
$test = urlencode($test); //make sure variable can be sent thru $_GET
echo "<a href='secondpage.php?var=$test'>nextpage</a>";
//secondpage.php
$test = $_GET['test'];
:: Copyright KIRUPA 2024 //--