Let me give a few more details. I guess this is more of a javascript question. I want to filter my input with a javascript function and then post to the php page from that function, how do I do that?
Currently, this is the form I have:
<form name="emailform" method="post" action="javascript:submission();">
<input type="text" name="title" maxlength="150"><br>
<input type="submit" value="Submit Title">
</form>
and this is my javascript:
function submission() {
temp=document.emailform.title.value;
if (temp=="") { alert("Please enter a title.");}
else {
if(isValid()) {
parent.location="vote.php?title="+temp;
}
else {
alert('Please enter a valid title. No more of this crazy scriptin!');
document.emailform.title.value = "";
}
}
}
currently I use the line:" parent.location="vote.php?title="+temp;"
to GET the information to the next page but I don't want the title to show up in the address bar. How can I do this?