Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- </head>
- <body>
- <form id="F1" name="F1" method="post" action="">
- <select name="Z" id="Z">
- <option>---Select Zone---</option>
- <option value="U">United States</option>
- <option value="O">Oceania</option>
- <option value="L">Latin America</option>
- <option value="E">Europe</option>
- <option value="C">China</option>
- <option value="K">Korea</option>
- <option value="T">Taiwan</option>
- </select>
- <select name="relm" id="relm">
- <option selected="selected">---Select Relm---</option>
- <?php
- $db = mysql_connect('localhost', 'root', 'pass');
- mysql_select_db ('DATABASE', $db);
- $Z = $_POST['Z'];
- $sel = "SELECT * FROM Realm WHERE Zone = '$Z'";
- $result = mysql_query($sel);
- while($row = mysql_fetch_assoc($result)) {
- echo '<option value='$row['RealmID']'>'$row['RealmName']'</option>';
- ?>
- </select>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement