Calling an action without clicking on the submit button

I have a form with a submit button.  When the file runs I am checking if a SESSION variable is set.  If it is I want to trigger the action the submit button is tied to without the user having to click.  I've tried ajax calls, jquery methods, onload in the html.  I can get each of these methods to give an alert, but none of them actually call the action.

Is there a way to do this from within the php code instead?


Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking