I'm kinda new at this so someone tell me if I'm wrong 🙂
- Variables in a form will automatically be passed to the next php page. On the second page just declare the variables you've passed as global. Example:
<form action='loggedin.php'>
Name: <input type='text' name='username'><br>
Pass: <input type='text' name='pass'><br>
<input type='submit' value='Log In'>
</form>
Then on the next page:
global $username, $password;
- You can definitely link to another page. Example:
$out = "<a href=nextpage.php><img src='next.gif'></a>";
echo $out;
If you want to pass variables that aren't in the form:
$out = "<a href=nextpage.php?username=$username><img src='next.gif'></a>";
echo $out;
I hope this answers your questions!
Lisa