Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $hostname="localhost";
- $username="root";
- $password="";
- $databasename="validate1";
- $connect=mysqli_connect($hostname,$username,$password,$databasename);
- $txt_country="0";
- $txt_state="0";
- $txt_city="0";
- if(isset($_POST['txt_country']))
- {
- $txt_country=$_POST["txt_country"];
- $txt_state=$_POST['txt_state'];
- $txt_city=$_POST['txt_city'];
- }
- ?>
- <html>
- <head>
- <script type="text/javascript">
- function showState(txt_country)
- {
- document.frm.submit();
- }
- function showCity(txt_state)
- {
- document.frm.submit();
- }
- enter code here</script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement