I would like to be able to get as many properties from a button to show as I can.
The button:
<input name="Accept" type="submit" class="button" id="Accept" value="Accept" />
The button code:
if(isset($_POST['Accept'])){
//show button properties here
}
What I would like it to show on button press:
- name: Accept
- type: submit
- class: button
- id: Accept
- value: Accept
and what ever else can be shown
Thank you in advanced.
There is no way how to get properties of HTML element by normal HTML behavior – but you can use JavaScript function that handles “onSubmit” form event by which you can send all you need.