• I have created one sample.php page where all my insert logic available. I have assigned that sample.php template to WordPress template. Now, in my wordpress page i have a input button from which i am submitting form.
    <input type=’Submit’ name=’ITRTuflokP10Submit’ value=’Submit’ onClick=’SetCotrolsValues()’></input>

    What happen, when i click to input button, javascript function call first and later all insert statement executed from sample.php template.

    I want to submit data first and later call the javascript function.

    Can anyone suggest me good approach to perform the same?

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to call javascript function after form submission in wordpress?’ is closed to new replies.