I am very very new to php and have been running through some tutorials. I have a simple page with three buttons. When the user clicks a button, I want to store the name of the button in a session. This is what i have:
<?php
session_start();
$rep = $_SESSION[' *** selected button name ***'];
?>
<body>
<form method='post' action='dpuform.php' target='_blank'>
<input type='submit' name='sales' value='Sales'/><br/>
<input type='submit' name='engineering' value='Engineering'/><br/>
<input type='submit' name='production' value='Production'/><br/>
</form>
</body>
And then I'll need to retrieve this value on the next page 'dpuform.php'...