Can you tell why my form is not submitted automatically ?
<form action="../../../socialnetwork/index.php" method="post" name="hid" id="hid">
<input type="hidden" name="UM_email" value="<?php echo $user_data->email; ?>" />
<input type="hidden" name="provider" value="<?php echo $provider_adapter->user()->providerId; ?>" />
<input type="submit" name="submit"/>
</form>
<script type="text/javascript">
function myfunc () {
//alert("loading....") its working
var frm = document.getElementById("hid");
frm.submit();
}
window.onload = myfunc;
</script>
that is caused by the
<input type="submit" name="submit"button.. change name to something like this name=”button_submit” and it will work