Linked Questions

Popular Questions

Submit button with php variable

Asked by At
<form method="post">
<input type="submit" name="'.$pTest.'" value="submit" id="submit"/>
</form>

<?php
if(isset($_POST[''.$pTest.'']))
{echo 'something'
;}
?>

This doesn't work if I use variable as the name of the submit button. Please some help!

Related Questions