Hello, I'd like to take HTML 101. So I was working on a form. Used this method to create the form. Minimal HTML. Simple CSS. Started playing around with the :focus pseudo-class… and that's when I noticed my submit button started looking crummy. (From a usability perspective, I think there are some things that SHOULDN'T […]
Problem: (somewhat in line with my last post) I needed to run a script in the "background", but I only had the ability to present the script as a .gif. Solution: actually, I came up with two ways of doing this and both use .htaccess to pull it off. 1) I'm a gif but really […]
I'm working on redesigning a site in CSS that I did many eons ago using tables for Christine. While I'm getting the hang of CSS, I still have a long ways to go. First of all – Christine wants a border around her photos: first a thick white one, then a one pixel black one. […]
(Side note: I hate ASP. I love PHP. But sometimes mean people make me use ASP) ;o) I needed to get the current page name and redirect to a different page if it was a certain name. (ie. 1.asp or 2.asp or… up to any two-digit + .asp) First – to get the page name […]
I was running into a problem with undefined index errors. You'll get that if you do seomthing like: echo $_GET['name']; when there is no $_GET['name']. One option is to check to make sure $_GET['name'] is set like if (isset($_GET['name'])) { echo $_GET['name']; } But if you're feeling lazy, you can leave your code as is […]
Comments Off on PHP: Hiding Errors
Found on this thread I needed to remove elements from an array that were either blank, nothing but a space, or null. foreach($array as $key => $value) { if($value == "" || $value == " " || is_null($value)) { unset($array[$key]); } } /* and if you want to create a new array with the keys […]
While we're on the subject of IE funkiness – I ended up on Toothpaste Addict tonight and noticed this little trick. (Actually, something weird happend when I copied and pasted the code from Toothpaste. Must have something to do with the text formatting there. But I found this page – which actually shows the same […]
It's a good thing I have no shame in admitting when I was doing something stupid. 😉 Otherwise I'd have no posts for this category. Just to explain a little about what I was working with – it was essentially an email form (emailform.php) – but before sending the email, it brought you to a […]
I'm in the process of moving a few other blogs over to use WP – one of which makes calls to a seperate database unrelated to WP. This proved to cause a conflict. After many hours of trying to figure out where the specific conflict was – I narrowed it down to my mysql_select_db line. […]