Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Use a value from a posted form in PHP

When you post a form, the receiving page can process the form variables (in PHP) as follows:

$targetvar = $_POST['formvariablename'];

It’s also a good idea to make sure you handle special HTML characters properly:

$targetvar = htmlspecialchars($_POST['formvariablename']);