197 Posted Topics
![]() | Re: If you don't need the trim (you know that the txt file records are already trimmed) you could simply use an array function. $ip_needle = $_SERVER['REMOTE_ADDR']; $ip_haystack = file('/ip.txt',FILE_IGNORE_NEW_LINES); echo in_array($ip_needle,$ip_haystack) ? $ip_needle.' found' : $ip_needle.' not found'; |
Re: Your href value is incorrect, it should start http:// You don't need the JS to open a new window the (deprecated) target atrribute should take care of that for you. | |
Re: Instead of deleting all the records you can truncate the table. This should reset the auto increment. | |
Re: More explicitly www.yourwebsite.com/underpublic/searchforprice.php What happens if you take the `crossDomain: true` line out? | |
Re: I haven't checked your code, but there's no need to use $location if (in_array($search_zip, $loc1)) { header("Location: http://dr.gorillaadvertising.net/no-service-in-your-area/"); die; } else { header("Location: http://dr.gorillaadvertising.net/order-dry-cleaning/"); die; } | |
Re: Try something like:- #footer { font: italic normal 12pt Cambria; background: transparent; text-shadow: 1px 1px #fff; color: #535353; position: fixed; bottom: 0; left: 0; height: 40px; width: 100%; z-index: 999; } | |
Re: I've never done this before and probably never will. Have a look at this article on [Wikipedia](http://en.wikipedia.org/wiki/Data_URI_scheme) | |
Re: I don't have the technical words, but you essentially use a parent/container as an event handler container (what?). I've set up a jsFiddle to demo. Hope it helps. [jsFiddle](http://jsfiddle.net/paulkd/hnbpA/) | |
Re: after this line (27) `$sql="SELECT id FROM admin WHERE username='$username' and passcode= ' $md5pass '";` add `die($sql);` and compare with what's in your database field. | |
Re: <html> <head> <script type="text/javascript"> alert("hi"); </script> </head> <body> ......... ...... .... </body> </html> | |
| |
Re: Not sure why you have two solutions. I would simply use (untested). I assume that this is inside <script> tags, inside a php file? reloadResponses(); function reloadResponses() { $('#responses').load('pages/community/load-responses.php?id=<?php echo $id;?>'); setTimeout(reloadResponses,10000); } | |
Re: You don't actually say what your problem is - are you looking for SQL code or do you have an error message? switch($id) { case: 5 : header('location: /personal.php');die; break; case 35 : header('location: /admins.php');die; break } } | |
Re: Where on your website is the actual file stored? e.g. http: //www.mywebsite.com/assets/images/avatar.jpg | |
Re: I haven't used raw XMLHttpRequest in a while - just so easy with jQuery. However, from what I remember don't you have to check ready states? I think maybe that your return is firing before you have actually caught a response. Your alert simply stops time allowing you to catch … | |
Re: Hi, The page you reference uses bootstrap, which uses the following css for your effect. input:focus:invalid:focus, textarea:focus:invalid:focus, select:focus:invalid:focus { border-color: #E9322D; box-shadow: 0 0 6px #F8B9B7; } I'd never seen the :invalid attribute, so I googled and found this [link](http://techblog.treenodes.com/index.php/2012/05/26/html5-required-attribute-and-css3-pseudo-classes-valid-invalid-3/). | |
Re: Absolutely love the new layout! I Would stick a load of smileys here if there were any ;-) ![]() | |
Re: Can we view the page? | |
I've just posted a code snippet, but it didn't go as well as I would have liked. Is there a "test" posting area in which to "play" ? :D | |
Re: If I understand correctly, you are populating a select based on the value chosen from a previous select. When all 3 options are chosen you want the value of the first select and the index (rather than value) of the options chosen for the remaining selects to be submitted. You … | |
Re: Method 1 Bootstrap 3. Lose the first and last column and work with 5 columns of 2 units. <div class="container"> <div class="row"> <div class="col-md-2 col-md-offset-1">Box 1</div> <div class="col-md-2">Box 2</div> <div class="col-md-2">Box 3</div> <div class="col-md-2">Box 4</div> <div class="col-md-2">Box 5</div> </div> </div> | |
Re: Just curious as to why you are using jQuery and then use raw JavaScript for the DOM? | |
Re: Just because it's "xhtml" you should not be using <div/> | |
Re: Are you using a database to populate the checkbox/input fields? | |
Re: I don't think you need to loop. I haven't had time to test but this page looks like you could adapt JorgeM's code and simply select the textboxes. [http://css-tricks.com/useful-nth-child-recipies/](http://css-tricks.com/useful-nth-child-recipies/) | |
Re: Why don't you review the js function the page is calling. [https://www.barnardos.org.uk/nom-forms-init.js](https://www.barnardos.org.uk/nom-forms-init.js) | |
Re: It's using html5 and the placeholder attribute. If you view in IE7 you wont see the effect. ![]() | |
| |
Re: Yes. I presume that you are posting a form to populate and then send the email? and after the email is sent (database updated etc..) take the user back to a "Thank you" page? You need to use JavaScript (with jQuery preferred) to place your animation on screen when the … | |
Re: JSON is a data storage format. JavaScript is a scripting/programming language. The [website](http://www.json.org) explains it better but the format is "readable" and lightweight. Your text shows that content.txt will contain JSON encoded data. You can use whatever server (PHP, ColdFusion..) or client (JavaScript..) language to read the data and reformat … | |
Re: Personally, I have no problem with adding these types of flair to my pages. If some browsers cannot see/use them, it's no big deal. Thanks for the snippet. | |
Re: Your footer is working correctly. You need to use `<table align="center">` to centrally align a table. If you add a `<p>Hello World</p>` in your footer you should see it in the middle. | |
Re: Here is some code I use. Just added the rmdir for you, I don't actually remove the directory. As you can see in good developer style I intend to use iterators some time in the future ;) //removed unwanted photos $tmpPhotoDir = DRB.'/photos/'; //todo: use iterator $dir = glob($tmpPhotoDir.'*.jpg'); if … | |
Re: Yes you are doing it wrong. You are calling $conn like a class but you have not declared a class in your connect.php file. You should google for beginners php oop. Here's an [oop mysqli link](http://www.mustbebuilt.co.uk/php/using-object-oriented-php-with-the-mysqli-extension/) | |
Re: Can you describe, without code, how you expect your form to work? Is using jQuery out of the question? ![]() | |
Re: Hi Glenn, Not actually answering your question but just offering some advice. Move your if/else to the top and then you'll only need one block of html. | |
There seems to be a lot of "how to... images in databases" questions. What are the Pros and Cons of this Vs good old fashioned images in folders? | |
Re: Presumably you are using developer tools to see the 404s. What are the 404 urls? have you tried manually loading (copy / paste) the 404 urls? I have no experience with Django or s3. | |
Re: If this is the route you expect to catch, I think it should be changed > $route['(:any)'] = 'pages/view/$1'; to ` $route['pages/(:any)'] = 'pages/$1';` | |
Re: Where do you intend to "display" the keywords? meta or visible on the actual pages? Either way your includes sound like they could be used for this purpose > The way my site works is that I do several includes at the beginning and end of each page script. > … | |
Re: Try `echo '<div>'.$abc['ID'].' '.$id.'</div>';` Also, I would recomment $_GET['id'] rather than $_REQUEST | |
Re: Another way would be to load everything into a single page and use JavaScript to hide/show the portions. | |
Re: What does this mean? > in the template is your project available to view? | |
Re: Might your other records may contain a trailing space? | |
| |
Re: You have two drop downs. Are they both populated via ajax or just the models drop down? | |
Re: You're using HTML5 why not simply add a placeholder attribute to the input field and remove the js? <input class="subscribe-input" type="text" value="" name="email" placeholder="Enter email to receive updates"> | |
Re: I've posted some code on cats/subcats. Hope it helps. See last post. [Click Here](http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/453720/retrieve-html-drop-down-list-value-with-ajax/2#post1970835) | |
Re: If you had 1 post I would have flagged bad post. I don't like pop-unders especially with sound. I don't see a "go right" link, or image maps. You need to explain your issue better. |
The End.