I know this code doesn't work. I want to pass $var1, $var2, and name to next.php. How can I do that?
<?php
$var1="test1";
$var2="test2";
?>
<form method="get">
<input type="text" name="name">
<a <?php echo "href='next.php?test1=".$var1."&test2=".$var2."'"?> >next</a>
</form>
in next.php
$var1=$_GET['name'];
$var2=$_GET['test1'];
$var3=$_GET['test2'];