Originally Posted by
Arch_Angel
Of course there is. Using a bit of javascript and naming your buttons using ID's, you shouldn't have a problem at all using a single form. Just show us what you're trying to do, and I'm sure we can come up with some code for you to use.
Well....I appreciate the help...but what I'm trying to do is a little less straight foward (by no means complicated) than the initial post...U see the different buttons are in different functions (them themselves contain other tables and buttons) that are called within a <table></table> declaration.....so U see it's not as straight forward as di initial post.....but what I have works now though...thanx to U'r post......
And thanx matronyx for your help too.....
I will defiantely take up your advise and suggestions for my next project though
(I now realise I will have to go learn JavaScript)
/************************************************** *******/
That said I have a different problem (I'm not so sure if I should start a new post for this)
I have a form that the user is presented with. This form contains 7 drop down menus 1 input box and 1 textarea (all the elements of the form contains preselected data which the user is allowed to change) and at the press of a button the user is allowed to UPDATE data in a DB.....
Now what I would want to do is avoid xecuting an UPDATE statement on the DB (thus avoid wasting server resources) if the user pressed the UPDATE button but didn't change anything in the form.....currently the UPDATE is executed regardless of whether the user changed anything.....thus wasting the server resources.....jus imagine a user sitting there jus continually pressing the UPDATE button while not making any change.......
Also currently if the user makes a no change or makes a change to all 9 elements of the form the UPDATE statement simply executes an UPDATE statement on all elements...thus simply overwriting the data in the with was already there....i.e it does a "wholescale" "UPDATE" regardless of what is actually changed....
Is there a way for me to determine what the user changed (in the form) and thus only update that ?