button submit with 2 different behaviour

Posted by kawtousse on Stack Overflow See other posts from Stack Overflow or by kawtousse
Published on 2010-05-25T03:28:20Z Indexed on 2010/05/25 3:31 UTC
Read the original article Hit count: 166

Filed under:

hi,

how could i set a variable with a submit button in order to differenciate 2 behaviours, so first time the same submit button will insert in database and in second time it updates database values.

Thanks.

© Stack Overflow or respective owner

Related posts about JavaScript