<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!