197 Posted Topics

Member Avatar for JayGeePee

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';

Member Avatar for paulkd
0
202
Member Avatar for designershiv

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.

Member Avatar for paulkd
0
318
Member Avatar for shlokka

Instead of deleting all the records you can truncate the table. This should reset the auto increment.

Member Avatar for JorgeM
0
97
Member Avatar for MWEB

More explicitly www.yourwebsite.com/underpublic/searchforprice.php What happens if you take the `crossDomain: true` line out?

Member Avatar for MWEB
0
169
Member Avatar for travis.holt.921_2

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; }

Member Avatar for EvolutionFallen
0
217
Member Avatar for gahhon

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; }

Member Avatar for gahhon
0
267
Member Avatar for developer707

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)

Member Avatar for JorgeM
0
234
Member Avatar for NoUserNameHere

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/)

Member Avatar for paulkd
0
129
Member Avatar for patk570

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.

Member Avatar for patk570
0
223
Member Avatar for 68thorby68
Member Avatar for shrikanthnk

<html> <head> <script type="text/javascript"> alert("hi"); </script> </head> <body> ......... ...... .... </body> </html>

Member Avatar for JorgeM
0
128
Member Avatar for terrymodular
Member Avatar for mmcdonald

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); }

Member Avatar for mmcdonald
0
216
Member Avatar for Ozzzi

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 } }

Member Avatar for Ozzzi
0
575
Member Avatar for andreiviziru

Where on your website is the actual file stored? e.g. http: //www.mywebsite.com/assets/images/avatar.jpg

Member Avatar for paulkd
0
1K
Member Avatar for Steviebone

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 …

Member Avatar for pritaeas
0
342
Member Avatar for davy_yg

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/).

Member Avatar for paulkd
0
90
Member Avatar for pritaeas

Absolutely love the new layout! I Would stick a load of smileys here if there were any ;-)

Member Avatar for diafol
0
1K
Member Avatar for AARTI SHRIVAS
Member Avatar for paulkd

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

Member Avatar for <M/>
0
214
Member Avatar for jeremygb

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 …

Member Avatar for paulkd
0
1K
Member Avatar for pardeepkhatri

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>

Member Avatar for paulkd
0
105
Member Avatar for NettSite
Member Avatar for hapiscrap
Member Avatar for ehpratah
Member Avatar for ehpratah
0
363
Member Avatar for brandon66

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/)

Member Avatar for brandon66
0
279
Member Avatar for jelly46

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)

Member Avatar for jelly46
0
135
Member Avatar for davy_yg

It's using html5 and the placeholder attribute. If you view in IE7 you wont see the effect.

Member Avatar for Zagga
0
183
Member Avatar for PriteshP23
Member Avatar for xxmp

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 …

Member Avatar for paulkd
0
131
Member Avatar for davy_yg
Re: JSON

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 …

Member Avatar for paulkd
0
133
Member Avatar for <M/>

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.

Member Avatar for <M/>
0
302
Member Avatar for andreiviziru

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.

Member Avatar for paulkd
0
121
Member Avatar for BadManSam

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 …

Member Avatar for paulkd
0
159
Member Avatar for LameApe

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/)

Member Avatar for paulkd
0
95
Member Avatar for maggoteer

Can you describe, without code, how you expect your form to work? Is using jQuery out of the question?

Member Avatar for iamthwee
0
277
Member Avatar for GlenRogers

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.

Member Avatar for GlenRogers
0
270
Member Avatar for paulkd

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?

Member Avatar for Reverend Jim
0
207
Member Avatar for Fromageball

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.

Member Avatar for paulkd
0
294
Member Avatar for davy_yg

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';`

Member Avatar for paulkd
0
233
Member Avatar for showman13

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. > …

Member Avatar for paulkd
0
157
Member Avatar for satbir4

Try `echo '<div>'.$abc['ID'].' '.$id.'</div>';` Also, I would recomment $_GET['id'] rather than $_REQUEST

Member Avatar for kaustavbanerjee
0
198
Member Avatar for Subomi

Another way would be to load everything into a single page and use JavaScript to hide/show the portions.

Member Avatar for paulkd
0
98
Member Avatar for lloydsbackyard

What does this mean? > in the template is your project available to view?

Member Avatar for lloydsbackyard
0
110
Member Avatar for websponge
Member Avatar for minitauros
Member Avatar for wmhintz
Member Avatar for paulkd
0
311
Member Avatar for rakwel10

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">

Member Avatar for paulkd
0
237
Member Avatar for GlenRogers

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)

Member Avatar for Banderson
0
4K
Member Avatar for silvercats

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.

Member Avatar for silvercats
0
134

The End.