Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- function showUser(str) {
- if (str == "") {
- document.getElementById("txtHint").innerHTML = "";
- return;
- } else {
- if (window.XMLHttpRequest) {
- // code for IE7+, Firefox, Chrome, Opera, Safari
- xmlhttp = new XMLHttpRequest();
- } else {
- // code for IE6, IE5
- xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
- }
- xmlhttp.onreadystatechange = function() {
- if (this.readyState == 4 && this.status == 200) {
- document.getElementById("txtHint").innerHTML = this.responseText;
- }
- };
- xmlhttp.open("GET","AccountInformation.php?value="+str,true);
- xmlhttp.send();
- }
- }
- </script>
- <body>
- <form>
- <select name="value" onchange="showUser(this.value)">
- <option value="">Select Server:</option>
- <option value="MortalStrikeAccountInformation">MortalStrike</option>
- <option value="DemonAccountInformation">Demon</option>
- </select>
- </form>
- <br>
- <div id="txtHint"><b>Please Select Server To Show your Information.</b></div>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement