Original Post
I'm using PHP and javascript. I want to know if it is possible to, using javascript, submit a form as if it where submitted by the user pressing a button himself. Problem is part of the PHP code is expecting the button's name on the $_POST variable, but, because the form is being submitted using the following javascript, it doesn't show up on the $_POST variable: document.form_name.submit(); Is there anyway I can make the button's name appear on the $_POST PHP array variable using javascript alone?