Posted 26 September 2006 - 08:30 PM
Is there any way to find which submit has been pressed, or which form it was in or something like that without me having to name my submit inputs and get there values with $_POST['submitnamegoeshere']; ?
Thanks in advnace for any help, and please say if you need more details.
Posted 26 September 2006 - 08:35 PM
Posted 26 September 2006 - 08:39 PM
Posted 26 September 2006 - 09:04 PM
Posted 26 September 2006 - 09:44 PM
Elements are inputs, selects, and textareas. So, if the form you're talking about is the first form on your page, and you want to get to the fourth form element, calling
var elem = document.forms.elementsfor the second element of the first form, for example). That will cut down on the overhead incurred by the Level 0 syntax as the script won't traverse the hierarchy every time it's called.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users