How can I pass a variable (form value variable) to a php script.
I tried passing the variable this way ($voucher = $_POST['voucher']) . where voucher is the name of the text form.
but it didn't work.
a simple example:
<?php if (!isset($_POST['submit'])) { echo ' <form action="" method="POST"> voucher: <input type="text" name="voucher"><br> <input type="submit" name="submit" value="submit"> </form> '; } else { echo 'voucher = ' . $_POST['voucher']; } ?>