Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. <?php
  2. $hostname="localhost";
  3. $username="root";
  4. $password="";
  5. $databasename="validate1";
  6. $connect=mysqli_connect($hostname,$username,$password,$databasename);
  7. $txt_country="0";
  8. $txt_state="0";
  9. $txt_city="0";
  10. if(isset($_POST['txt_country']))
  11. {
  12. $txt_country=$_POST["txt_country"];
  13. $txt_state=$_POST['txt_state'];
  14. $txt_city=$_POST['txt_city'];
  15. }
  16. ?>
  17.  
  18. <html>
  19. <head>
  20. <script type="text/javascript">
  21. function showState(txt_country)
  22. {
  23. document.frm.submit();
  24. }
  25. function showCity(txt_state)
  26. {
  27. document.frm.submit();
  28. }
  29. enter code here</script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement