body.php [code=php] <html> <head> <script type="text/javascript"> function showUser(str, query) { if(document.getElementById("Author").checked==true) { query="author"; }else if(document.getElementById("bookname").checked==true) { query="bookname"; }else{ document.getElementById("textHint")="please select"; } if (str=="") { document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("txtHint").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","postback.php?q="+str+"&query_type="+query,false); //xmlhttp.open("POST","postback.php",false); xmlhttp.send(); } </script><title> Search Books </title> </head> <body> <form method ="GET" > <div style="background-color:Orange" align="left"> <h3>Welcome<label name="name"><?php /*require('validation.php');*/ echo $_GET['uname'].", "; ?></label>Want to search a book?</h3> Search:<input type="text" name="users" onKeyUp="showUser(this.value)"/><br/> Search By<br/> Author<input type="radio" name="query_type" id="Author" onClick="showUser()" checked="checked" style="color: …

Member Avatar
+0 forum 0

So I got help from here earlier with one problem and a few more have arisen, the biggest is for some reason my checkbox and dropdown array won't store the data and when it's supposed to check to verify there is at least 1 selected of each nothing happens... To be honest the ideal thing would be to have it check to see if the drop down size selection below the checkbox was selected, but I'll do whatever as long as it works. Thanks ahead of time for the help. Here's my page code: [code] <html> <HEAD> </head> <body> <?php …

Member Avatar
+0 forum 0

[CODE] <asp:Repeater ID="Repeater1" runat="server"> <HeaderTemplate> <table border="1" width="100%"> <tr> <th>id</th> <th align=left>Room Categories</th> <th>single</th> <th>Double</th> </tr> </HeaderTemplate> <ItemTemplate> <tr> <td width="5%"> <asp:Label ID="Label3" runat="server" Text= '<%# Container.DataItem("packageid")%>' /></td> <td> <asp:CheckBox ID="chk_packages" AutoPostBack=true runat="server" Text = <%#Container.DataItem("package_name")%> /> </td> <td><%#Container.DataItem("single_rate")%><asp:CheckBox AutoPostBack=true ID="single" Enabled=false runat="server" /></td> <td><%#Container.DataItem("double_rate")%><asp:CheckBox AutoPostBack=true ID="Double" runat="server" /></td> <td><asp:Label ID="Label2" runat="server" Text="Label"></asp:Label></td> </tr> </ItemTemplate> <FooterTemplate> </table> </FooterTemplate> </asp:Repeater> </asp:PlaceHolder>[/CODE] i want when any packages checbox click in repeater two other checkbox in repeater (single,double get enable) in the same row ,whne i un-unchecked it it also disables them , iw rite some stuff in my application in order to …

Member Avatar
+0 forum 0

I've having very much trouble with the last piece of my site. I retrieve my database including checkboxes. From here I want to check/ucheck the boxes and save it back into the database. The problem I run into is when I check some boxes it doesnt take any notice witch 'id' it is. When I check the last two boxes it will fill the first two. Here is my code {Please help!!!!!}: [CODE] <?php require_once('Connections/Webw.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) …

Member Avatar
+0 forum 0

The End.