Right, my problem is that i want to place a hyperlink (or a button, i am not really concerned about what it looks like for the time being) within a quite large form that i want to use to pass some variables to another page. I have already tried something along the lines of:
echo "
<form name = 'newForm' action = 'index.php' method = 'post'>
<input type = 'hidden' name = 'name1' value = '$var1' />
<input type = 'hidden' name = 'name2' value = '$var2' />
<input type = 'hidden' name = 'name3' value = '$var3' />
<a href = \"javascript:document.getElementById('newForm').submit();\">Submit new form</a>
</form>
";
However, i am using a javascript that requires the original (more important) form to not be interrupted with another form.
The reason i want to be able to send this information to the post array is that the original form needs to use the post array for security and size reasons (the size of the form is dynamic depending on user input and could easily exceed over 500 arguments being passed on a regular basis). I would like to keep the whole site using the post array so that i am not constantly checking between the $_GET and $_POST arrays for the variables i need.
Thanks for reading and also any help you could provide.