Hello Folks,
Okay, Fist I really need a good website that breaks down the properties, methods, and etc for document. something any help would be great? Next, I need someone to tell me where or what it is I am doing wrong here in this script? When I click on the Post Button, nothing happens, and something should be happening, I am trying to execute a function on Post, then that calls formSubmit, which in turn should call a PHP file to do some work and it's not, any clue what's going on here?
Here is my script:
Cheers,
imryn
Okay, Fist I really need a good website that breaks down the properties, methods, and etc for document. something any help would be great? Next, I need someone to tell me where or what it is I am doing wrong here in this script? When I click on the Post Button, nothing happens, and something should be happening, I am trying to execute a function on Post, then that calls formSubmit, which in turn should call a PHP file to do some work and it's not, any clue what's going on here?
Here is my script:
Code:
<html>
<head>
<script language="JavaScript">
function formSubmit(){
if (document.eventForm.title != "") {
document.eventForm.method = "post";
document.eventForm.action = "eventsubmit.php<?=$qstr ?>;}
document.eventForm.submit();
}
else { alert("<?$lang['titlemissing'] ?>"); }
}
</script>
</head>
<body>
<form name="eventForm">
.
. some html code laced with php code.
.
<input type="button" value="Post"
onClick="formSubmit()">
<input type="button" value="Cancel"
onClicke="window.close();">
Cheers,
imryn