I guess this is v silly but only what i want to do is when submit is clicked then run commands.
so the source below is basically just testing this, if submit is clicked then submitted else not submitted.
At the minute this doesnt work so is there any way i can get this to work. as i can then add more commands on click.
<?
echo '<form name="register" action="'.$_SERVER['MY_SELF'].'" method="post">';
echo "<b><center>Register users</center></b><br>";
echo "<left>Name:</left><br>";
echo '<input type="text" name="txt_name" maxlength="20"><br>';
echo '<left>Surname:</left><br>';
echo '<input name="txt_surname" type="text" maxlength="20"><br>';
echo '<input name "submit" type="submit" value="submit" > ';
echo '<input name "btn_cancel" type="submit" value="Cancel">';
echo '</form>';
if($_POST['submit'] == 'submit')
{
echo 'submitted';
}
else
{
echo 'not submitted';
}
?>
thankyou in advance for the help 😃