It certainly looks like you are trying to submit the data. Would you like it to do something else? Instead of type="submit" try type="button" then you will have to give it onClick code
-
onClick="window.location='register.asp'"
-
Or do you want to submit the data but to a different page?
Jared
Hi Jared
Thanks for the reply - I actually maybe in the wrong forum - firstimer, not really sure about things yet.
I forgot to add the script before (see below)
I have created a form that asks you for an ID Name and password to allow you to continue. However I also wanted a button when pressed sent you to another page (register.asp) so that a customer could register there details if they wanted to view the site. Hope this makes sense. I just want a customer to able to press a button that sends them to another page -
Regards
Hemong
<script language="JavaScript" type="text/JavaScript">
<!--
var mmWindow;
function windowOpener() {
if (!mmWindow || mmWindow.closed){mmWindow=window.open('where_to_fi nd_us.htm','thewindow','width=650,height=570,top=1 0,left=50, resizable,menubar,statusbar,toolbar,scrollbars');}
else{
mmWindow.close();
mmWindow=window.open('where_to_find_us.htm','thewi ndow','width=650,height=570,top=10,left=50, resizable,menubar,statusbar,toolbar, scrollbars');
}
}
function setDomain() {
var liBehindFirstDot = document.domain.indexOf( "." ) + 1;
if (liBehindFirstDot > 0) {
document.domain = document.domain.substr( liBehindFirstDot );
}
}
setDomain();
function submitLogin(frmLogin) {
// Get username and password from user input
var myLogin = new String(frmLogin.elements["username"].value);
var myPassword = new String(frmLogin.elements["password"].value);
// Check that both username and password are entered
if (myLogin == "" || myPassword == "") {
alert("Please enter a username and password");
}
else {
// Login via javalogin
// alias: username
// password: password
// contact: BOC contact department - Displayed if login fails
// phone: BOC phone number - Displayed if login fails
// logout_url: Logout url
frmLogin.action = "https://pgw100.portal.gases.boc.com/javalogin/javalogin.jsp?alias=" + myLogin + "&password=" + myPassword + "&contact=BOC Customer Service&phone=0800 111 333&logout_url=http://www.bocindustrial.co.uk";
//frmLogin.submit();
}
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>