Hey! I want it so that the user presses an A tag, a link, to submit a form. Here is some of my code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>jeje</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
function popup(url, height, width,form){
newwindow = window.open(url,'333','height='+height+',width='+width);
if (window.focus) newwindow.focus();
if(form) form.target = '333';
}
</script>
</head>
<body>
<form action="#" method="post" id="myform">
<input type="input" name="abc">
<a href="#" onclick="forms['myform'].submit();popup('http://3rlend.com/post.php',400,300,forms['myform']);">Submit</a>
</form>
</body>
</html>
But this does not work. I have been trying so many things, this is not my first try.
Please tell me what's wrong, or give me a good code!
Thanks
EDIT: the error is that $_POST in the php file is empty