The example provided in “Build your own database driven website using php & mysql” they use the following form setup in jokes.html.php:
<form action=“?deletejoke” method=“post”>
why would they then suggest to use:
if (isset($_GET[‘deletejoke’]))
to “get” the varialbe? wouldn’t you use post since the form is method= “post”?
Cool, so basically this was just a shortcut the author took, rather than building in an invisible “deletejoke” field in the form to pass the variable via POST?