473,756 Members | 9,662 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

form doesnt show

232 New Member
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 1487
gits
5,390 Recognized Expert Moderator Expert
what does firebug or firefox's error console say?

kind regards
Mar 2 '10 #2
kkshansid
232 New Member
it doesnt give any error but whole page comes again except form.form doesnt come on changing state
Mar 3 '10 #3
kkshansid
232 New Member
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
74132
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 Form1.Visible = False Load (Form1)
5
3638
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 puposes only and is not normally visable to the user.) The Thread function is actually in the Form class. Now.. What I am seeing is that when I create an instance of this Class Library's Form, which starts the worker thread, it seems to hose up...
0
1506
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 puposes only and is not normally visable to the user.) The Thread function is actually in the Form class. Now.. What I am seeing is that when I create an instance of this Class Library's Form, which starts the worker thread, it seems to hose up...
19
24760
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 point of the app: Application.Run(new MainFrame()); Now i tried to use this to hide the Form and show up the trayBarIcon with this in the constructor of the form.
4
5855
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 vb.net that doesnt seem to do alot most of the time so far as i can tell. So im using form.showdialog all the time. But it seems as though once i call this code, all control transfers to the open form and only when closed the control returns to the...
1
1738
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 appear. Whats happening now is the project appears to start but the form doesnt show. The process appears in Task manager but in VB .net the the blue bar at the top still still says and the usual stop button isnt there and the IDE just appears to...
4
1777
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 & ones a child form. I've put this code into a menustrip on the parent form private void maintainClientsToolStripMenuItem_Click(object sender, EventArgs e) {
1
4252
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 Property
2
1890
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 no success: Private Declare Function SetForegroundWindow Lib "user32.dll" (ByVal hWnd As IntPtr) As Boolean then - SetForegroundWindow(Me.Handle)
4
5931
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 them I just set their datasource. I am guessing this is probably what is causing the problem. Is there a better way to do this? Anyway this all works happily and things show up when the record already exists but I have 2 problems ; 1) When I add...
0
9292
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10062
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9878
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9728
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8733
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6551
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5322
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3392
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.