ive got a few forms and i want to use 1 function to deal with them (each having a different button so i tried
Code: Select all
function try($button){
if(isset($_POST['$button'])){
$field1=$_POST['field1'];
echo $field1." was inserted when ".$button." was pressed";
}
}
try(help);