263 Posted Topics
![]() | Re: If your not getting anythinng in the drop down box, try this. You: //Changes are in RED [CODE] [COLOR="Red"]while($row = mysql_fetch_array($result)) {[/COLOR] $kinase = $row['kinase']; $tracer_conc = $row['tracer_conc']; $options.= "<option value=[COLOR="red"]'$id'[/COLOR]>".$kinase; // You do not have ID defined in $row.. } [COLOR="red"]echo "</select>"; [/COLOR]<-- Why is this here? ?> <select … |
Re: assign id's to your form inputs. <input type="text" name="name" id="name"> then when you submit the form, the php page will grab the id called name <?php $name = $_POST['name']; echo $name; ?> | |
Re: You will probably have to use DOM and get the elements id, like in javascript. I had the same problem in javascript, but i figured it out using jQuery and its simple. [Click Here](http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/422290/counting-words-using-jquery) ![]() | |
| |
Re: Here is an example on how to read an XML file. books.xml <books> <book> <author>Jack Herrington</author> <title>PHP Hacks</title> <publisher>O'Reilly</publisher> </book> <book> <author>Jack Herrington</author> <title>Podcasting Hacks</title> <publisher>O'Reilly</publisher> </book> </books> readbooks.php <?php $doc = new DOMDocument(); $doc->load( 'books.xml' ); $books = $doc->getElementsByTagName( "book" ); foreach( $books as $book ) { $authors = … | |
Re: Are you trying to redirect the page with the nested iframe? Basically if you click delete in the iframe, you want it to redirect the main page. | |
Re: in your php.ini enter your smpt address and port. Then just use a php script to send the mail. Here is a basic example: <?php // Or you can define it in your script, but for security reasons do it in php.ini ini_set("SMTP","smtp.example.com" ); ini_set("smtp_port","port number" ); // If you … | |
Re: dont know if you make a mistake,but you need <?php on line 26 | |
Re: //you while($arr = mysql_fetch_array($result, MYSQL_ASSOC)){ $resultlink = "\n\t<li><a href=\"posts.php?ID={$arr['id']}+{$arr['type']}+{$arr['name']}\">{$arr['name']} {$arr['location']}</a></li>"; // example to try while ($arr = mysql_fetch_array($results)){ echo "<a href='posts.php?id='".$arr['id']."&type=".$arr['type']."'>".$arr['name']." ".$arr['location']."</a>"; } | |
Re: well all i can see so far is that when you click on the link, you get a url that only has 1 variable. post.php?id=1hoteljoes try <a href=\"post.php?id=".$arr['id']."&type=".$arr['type']."&name=".$arr['name']."\"> | |
Hello, Ok so here is my dilemma, when im watching a movie or youtube or anything, i use the HD Audio Device which is the default device to use when listening to something. When i switch to my Corsair headphones, the volume still comes from my speakers and not the … | |
Re: Well in my opinion is instead of creating a div then appending stuff to it, make the div in the form, apply a css attribute of visibility:none, add the image and the other div below it and apply a css attribute to them also. Then when success is called, just … | |
Re: I had the same problem and it turned out that the computers time was not in sync with the server time. After it my computer synced with microsoft's time, windows update worked. | |
![]() | Re: Dude, if you want to sort by desc, or asc, then just have an html option where the values are <?php self...?sort=asc then have your php code if(!isset('something')) { mysql code ORDER BY ASC } check out www.w3schools.com. really good play to begin learning. ![]() |
Re: If im not mistaken, array_key_exists checks to see if an array is true. From the php manual: array_key_exists() returns TRUE if the given key is set in the array. key can be any value possible for an array index. Example: <?php $search_array = array('first' => 1, 'second' => 4); if … | |
Re: well if your database has a row for each checkbox value, then you could just use the if statement: <?php if(!isset($row['hobbies']) == NULL) { echo "<input id='hobbies' type='checkbox' value='Hobbies'>"; } else { echo "<input id='hobbies' type='checkbox' value='Hobbies' checked='checked' />"; } ?> Dont know if this helps, but its a start. | |
Re: Or you could try something like this. $("table").css({'background-color': '#ffe', 'border-left': '5px solid #ccc'}) | |
![]() | Re: Well i was searching around googling the work cosymantecbfw and i think it relates to ' co symantec bfw' for symantec. Are you running any symantec programs? ![]() |
Re: Try replacing url: $(planbook).val() with $(".planbook").html() Reason is, because if planbook is a css, then you need to add it with the "." in front of it. Val() is used on form elements, so in this case, if its not a form element, we use .html(). Read this link from … | |
Re: Try putting the whole ajax function together. I dont know why you broke it up like that. Change your select statement to this. echo '<select name="district" class="text" onChange="getCity(this.value)">'; And try using this for your ajax on register.php function getCity(str) { var xmlhttp; if (str=="") { document.getElementById("citydiv").innerHTML=""; return; } if (window.XMLHttpRequest) … | |
Re: Try this. [Click Here](http://docstore.mik.ua/orelly/) | |
Re: You know another way to do this, is if you are using dreamweaver and If not already installed, use spry framework for ajax. | |
Re: This code is compressed. You have to either ask the originator or try to un compress it. | |
Re: in XAMPP, there is a build in mail system called mercury mail. if you want to use smpt, you need to get that info from yahoo, google.. unless your using outlook, then just use that info. | |
Re: I could be wrong, but unlsess the input fields have data in them before the document loads, then its just going to get the blank values when the document loads. Try putting all that in a function, so when you click submit, it will get the data from the input … | |
Re: You could also try this <script type="text/javscript"> function signup(){ var username = document.getElementById("text_username").value; var password = document.getElementById("text_password").value; alert(username + " " + password); return false; } </script> <form action="do_signup" method="post" onsubmit="signup()"> Username : <input type="text" id="text_username" /><br /> Password : <input type="password" id="text_password" /><br /> <input type="submit" name="submit_button" value="Signup" /> … | |
Re: Where is your javascript code? this is HTML, if you have a problem with that, please post in the HTML section. | |
Re: You could try making a script and insert it on all your pages. In php, you would have to write the session on top of every page, so why not include a script on every page. <script type="text/javascript"> $(document).ready(function(){ $("a").click(function(){ // your global variable var z = "cheese"; //gets the … | |
Re: Im testing it in chrome and its working just fine, but firefox is a no go. what browser are you using? Here is the link to Github html5slider for firefox. Just remember to have some sort of code to identify the browser so it can properly be displayed. [Click Here](https://github.com/fryn/html5slider) | |
Re: So you want to use an input box to navigate through pages? | |
Hello, i have this piece of code that counts the number of words in a td based off the class of the td. It works find if all the words inside the td's are the same, but if i change one, it doesnt work. <html> <head> <script type="text/javascript" src="jquery.js"></script> <script … | |
Re: Dont use the $_GET statement in Biiim statment, use $_POST. The only time you use GET statement, is if you are submitting your form using a url. in this case you would need to have the form method="GET", but your using method="POST" | |
| |
Re: have you tried floating the divs, or just put them in a table | |
Re: First off i see that you are using double quotes on the id after $_GET. The only time you use get, is when you are passing variable through a URL, in this case you are not. > mysql_query("UPDATE table SET status = 1 WHERE id = '". $_GET['repid'].**"'",** $c2) or … | |
Re: Also, why are you referencing two jquery links? you have 1.3.1 and 1.4.4 | |
Re: Make sure the css' are not conflicting. There has been many times where i have had that happen to me. Did you build the floating menu on your computer? | |
Re: Now, when you log in as Admin, do you "Sucessfuly" log out so the session is destroyed? The only thing i can think of is the session not being destroyed and the member gets the session because its still active. Or when you log in as Member, what is the … | |
Re: if you are sending email and want to recieve them in outlook, you need to have the smpt information for each one. Say yahoo, you need to pay to have an SMTP for outlook. | |
Re: $search_id = $_POST['searchID']; $searchById = "SELECT * FROM tc_tool.forms WHERE doc_id LIKE "%$search_id%"'; But i think the problem is with your table name because database and table names cannot contain “/”, “\”, “.”, or characters that are not permitted in file names. So.. tc_tool**.forms** is innapropriate, but tc_tool is ok … | |
Re: you could just use PHP redirect. <?php session_start(); $_SESSION["visiting"] = $_GET["userid"]; echo $_SESSION["visiting"." ".$_GET["userid"]; header("Refresh: 10; URL=http://localhost/fi.php"); //Refreshes after 10 seconds ?> make sure this goes above <html> or you will get errors. | |
Re: well i guess you going to have to set a fixed width on the divs so the left one doesnt push out the right when being shown. | |
Re: You need to make your parent div have a position: relative and #answer 1 & 2 need to have position:absolute; z-index: 100 # .cont a { text-decoration:none; font-family: Calibri, Arial, sans-serif; font-size: 14px; color:#000; position:relative} #answer1 { border: 1px solid black; color: grey; width: 300px; display:none; margin-left: 115px; margin-top: -15px; … | |
| |
Re: if you have smtp, then configure your php.ini with it. Other than that, here is a good link to learn from [click](http://www.google.com/) ![]() | |
Re: Did you try taking out the return in your onClick? onClick="dynaBlock()" | |
Re: Well let me look into my crystal ball too see your coding problem. If you have a problem, please post your code that you are having problems with. From this point i can tell you is to change method from get to post |
The End.