We help IT Professionals succeed at work.
Get Started

Image Button, Form Action and onClick

OldHatt45 asked
Last Modified: 2013-12-12
I have a form that gets submitted by an image button using the form "action".
I cannot mess with that part of the process.  And, It works the way it should.
However, some addiional processing needs have been requested.  
What needs to happen is when the image button is pressed, a database (mySQL) update needs to happen, before the "form action" submits the form and sends things off.  I have been  searching EE for possible solutions and can't find anything I can use to solve the problem.

I was thinking about using the "onClick" of the image button, but i have seen a couple of questions answered where it looks like this won't work.

I am in desparate need of a quick solution.
Would really appreciate some Major Help

Watch Question
Distinguished Expert 2020
This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE