So the convention of using input type submit is this
<input type='submit' value='Submit'>
this will give me a button that says “Submit” on it and inside the post array i will have
$_POST['submit'] = 'Submit'
is it possible to have the submit button to show Submit but have the post value to be different. In other words, I want a button that still says “Submit” on it but the
$_POST['submit'] = 1
Is this possible without JavaScript?
You can create a hidden input field with the name ‘submit’ and set the value to 1. You don’t have to set the value of the input button itself in order to capture this value.