Hi, i have two submit buttons in one form. Each goes to a different jsp page. The script i have works fine, the problem is whatever values i entered into the form is now visible in the address bar for example
[url]http://localhost:8080/test1.jsp?name=testing
How do i ensure that the values which i enter into the form is not shown in the address bar. This is my script.
<script language=”JavaScript”><!–
function sendForm(action,encoding) {
if (document.images) {
document.registerForm.action = action;
document.registerForm.encoding = encoding;
}
return true;
}
//–></script>
<form name=”registerForm”>
<input type=”text” name=”myText” value=”some text”>
<input type=”submit” value=”Submit1″ onClick=”sendForm(‘test1.jsp’,’text/plain’)”>
<input type=”submit” value=”Submit2″ onClick=”sendForm(‘test2.jsp’,’text/plain’)”>
</FORM>