473,398 Members | 2,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

form doesnt show

232 100+
Expand|Select|Wrap|Line Numbers
  1. <?php
  2.     session_start();   
  3.  
  4. ?>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7. <head>
  8.    <title></title>
  9.    <meta name="generator" content="Microsoft FrontPage 5.0" />
  10.    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  11.    <meta name="description" content="" />
  12.    <meta name="keywords" content="" />
  13.    <meta name="author" content="" />
  14. <script languphase="javascript" type="text/javascript">
  15. var xmlhttp;
  16.  
  17. function showUser(str)
  18. {
  19. xmlhttp=GetXmlHttpObject();
  20. if (xmlhttp==null)
  21.   {
  22.   alert ("Browser does not support HTTP Request");
  23.   return;
  24.   }
  25. var url="rteg.php";
  26. url=url+"?q="+str;
  27. url=url+"&sid="+Math.random();
  28. xmlhttp.onreadystatechange=stateChanged;
  29. xmlhttp.open("GET",url,true);
  30. xmlhttp.send(null);
  31. }
  32.  
  33. function stateChanged()
  34. {
  35. if (xmlhttp.readyState==4)
  36. {
  37. document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
  38.  
  39. }
  40. }
  41.  
  42. function GetXmlHttpObject()
  43. {
  44. if (window.XMLHttpRequest)
  45.   {
  46.   // code for IE7+, Firefox, Chrome, Opera, Safari
  47.   return new XMLHttpRequest();
  48.   }
  49. if (window.ActiveXObject)
  50.   {
  51.   // code for IE6, IE5
  52.   return new ActiveXObject("Microsoft.XMLHTTP");
  53.   }
  54. return null;
  55. }
  56. </script>
  57. <script language="JavaScript" src="../../../include/common.js"></script>
  58.  
  59.  
  60.  
  61.  
  62. <link rel="stylesheet" href="../../../include/style.css" type="text/css" />
  63. </head>
  64. <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  65.  
  66. <div id="txtHint"> 
  67. <?php
  68. $scheme=$_GET['scheme'];
  69. //$TR_State=$_GET['TR_State'];
  70. //echo $TR_State;
  71.  
  72.  
  73. if($scheme=="")
  74.     {
  75.     echo "<meta http-equiv='refresh' content='1; url=ngo.php'>";
  76.     } 
  77. require("../include/header.php"); ?>
  78. <?php require("../include/left.php"); ?>
  79.  
  80.  
  81. <div class="heading"> </div>
  82.      <div class="text"> 
  83.     <?php 
  84.  
  85.  
  86.  
  87.  
  88.      require("../include/conn.php");
  89.      require("../include/dob.php");
  90.      require_once "../include/formvalidator.php";
  91.     //require_once "formvalidator.php";
  92.  
  93. ?>
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.       <table width="100%" align="left"  cellpadding="0" cellspacing="0">
  101.         <form action="" method="POST"  name="form1" onsubmit="return ValidateForm(this)">
  102.         some code
  103.  
  104.                               <tr valign="middle"> 
  105.             <td ><div align="left"></div></td>
  106.             <td><div align="left"></div></td>
  107.           <tr valign="middle"> 
  108.             <td > <div align="left">State</div></td>
  109.             <?php
  110. //Select a User:
  111.  
  112. $q=$_GET["q"];
  113. //echo $q;
  114. //exit;
  115. $q= mysql_real_escape_string($q);
  116. if($q=="")
  117. {
  118. $q="assam";
  119. }
  120.  
  121. $sql="SELECT distinct(state) FROM statedistrict";
  122.  
  123. $result = mysql_query($sql);
  124. ?>
  125.             <td> <div align="left"> 
  126.                 <select name="TR_State" id="TR_State" onchange="showUser(this.value)">
  127.                   <option value="<?php echo $q; ?>"><?php echo $q; ?></option>
  128.                   <?php 
  129. while($row = mysql_fetch_array($result))
  130.   {  ?>
  131.                   <option value="<?php echo $row[0]; ?>"><?php echo $row[0]; ?></option>
  132.                   <?php }
  133.  
  134.  
  135. ?>
  136.                 </select>
  137.               </div></td>
  138.           </tr>
  139.           <tr valign="middle"> 
  140.             <td ><div align="left"></div></td>
  141.             <td><div align="left"></div></td>
  142.           </tr>
  143.           <tr valign="middle"> 
  144.             <td > <div align="left">District</div></td>
  145.             <td> <div align="left"> 
  146.  
  147.  
  148.                 <select name="TR_District" id="TR_District">
  149.                   <?php
  150.  
  151.  
  152.  
  153. $sql="SELECT district FROM statedistrict WHERE state = '".$q."'";
  154. ?>
  155.  
  156. <?php
  157. $result = mysql_query($sql);
  158.  
  159.  
  160.  
  161. while($row = mysql_fetch_array($result))
  162.   {
  163.   ?>
  164.                   <option value="<?php echo $row[0]; ?>"><?php echo $row[0]; ?></option>
  165.                   <?php }
  166.  
  167.  
  168. ?>
  169.                 </select>
  170.               </div></td>
  171.           </tr>
  172.  
  173.         </form>
  174.  
  175.  
  176.       </table>
  177.  
  178.  
  179.  
  180.  
  181.    </div>
  182.  
  183. <?php require("../include/right.php"); ?><?php require("../include/footer.php"); ?>
  184. </div></div></div></div>
  185. </body>
  186. </html>
  187.  
kindly help to find the error this code is running fine with other browsers but in firefox on changing state only left right header shows but form doesnt show
Mar 2 '10 #1
3 1465
gits
5,390 Expert Mod 4TB
what does firebug or firefox's error console say?

kind regards
Mar 2 '10 #2
kkshansid
232 100+
it doesnt give any error but whole page comes again except form.form doesnt come on changing state
Mar 3 '10 #3
kkshansid
232 100+
is there any thing that <div id="txtHint"> only html tag comes my form also contains some php tags
Mar 3 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: genetic.error | last post by:
I'm moving from Vb6 to VB.Net. I have a feeling this has come up before... The VS.Net MSDN file seems to state that the following should work: Form1.Show Form1.Visible = True Form1.Hide...
5
by: me | last post by:
I have a Class Library that contains a Form and several helper classes. A thread gets created that performs processing of data behind the scenes and the Form never gets displayed (it is for debug...
0
by: me | last post by:
I have a Class Library that contains a Form and several helper classes. A thread gets created that performs processing of data behind the scenes and the Form never gets displayed (it is for debug...
19
by: Oliver Neumann | last post by:
Hello, im new to c# and i got an app with a notifyicon. Now i want to start the app only with the notifyIcon, so that the Main-Form doesnt show up. The form itself is used at the entrance...
4
by: Jm | last post by:
Hi all Im not sure of the best way to be displaying my forms and just want a bit of clarification. Being only recently moved to vb.net im still used to the old vb6 form.show method, now under...
1
by: PAUL MITCHELL | last post by:
Hello, bit of strange one this, I have a VB .net application that has Sub Main() as its startup procedure, this then creates and shows a form. Up till now when I pressed F5 the form would duly...
4
by: Duncan | last post by:
Hi I'm learning c# 2.0 as I feel I need to be able to switch between vb & c#, I'm just starting with a few simple examples and I've come across a problem. I've got two forms ones an MDI parent &...
1
by: Luke R | last post by:
How do i do this? I have this at the top of the class for my form, but it doesnt work. Protected Overrides ReadOnly Property ShowWithoutActivation() As Boolean Get Return True End Get End...
2
by: Bails | last post by:
Hi all, I just added an About form to my VB.NET EXPRESS application and whilst it does show, it doesnt appear in front of my main form, rather behind it. So far I have tried the following with...
4
by: John Sheppard | last post by:
Hello there I was wondering if anyone could help me, I am trying to pass a typed dataset to a dialoged child form by reference. I have binding sources sitting on the child form. So to refresh...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.