Happy Birthday, Les Paul!

http://goo.gl/doodle/Qubgg

Posted in Blog

Fix-a-Ford

That darn air bag light was driving me crazy. I tried googling it again. This time I found out there are tons of people with the same issue and this guy happened to have a document with the air bag codes. Air bag code 47: Passenger seatbelt sensor. Disconnected it and reconnected and the light is gone.

Next stop: hatch door.

Posted in Blog

PHP mail() Function

The PHP mail() function is handy. You can use it to have people contact you through a form on your Web page if you don’t feel comfortable displaying your email address. The sample code below will send an email to “contact@mydomain.com” with the subject and message as the respective text inputs below.

  1. <?php
  2. // check to see if send button has been clicked
  3. if (isset($_REQUEST["submit"])) {
  4.  
  5. 	$to = "contact@mydomain.com";
  6. 	$from = $_REQUEST["email"];
  7. 	$subject = $_REQUEST["subject"];
  8. 	$message = $_REQUEST["message"];
  9.  
  10. 	// validate email address
  11. 	if (!filter_var($from, FILTER_VALIDATE_EMAIL)) {
  12. 		$err_from = true;
  13. 	}
  14.  
  15. 	if ($err_from) {
  16. 		// error message goes here
  17. 	} else {
  18. 		// try to send it
  19. 		if (mail($to, $subject, $message, "From: $from")) {
  20. 			// message has been sent
  21. 		} else {
  22. 			// there's been an error
  23. 		}
  24. 	}
  25. }
  26. ?>
  27. <form method="post" action="<?php echo $_SERVER['SCRIPT_NAME']; ?>">
  28. 	<p><label>From:<br /><input name="email" type="text" value="<?php echo $from; ?>" /></label></p>
  29. 	<p><label>Subject:<br /><input name="subject" type="text" value="<?php echo $subject; ?>" /></label></p>
  30. 	<p><label>Message:<br /><textarea name="message" rows="10"><?php echo $message; ?></textarea></label></p>
  31. 	<p><input name="submit" type="submit" value="Send" /></p>
  32. </form>

See it live.

Posted in PHP Tutorials | Tagged as ,

My new favorite Web site

Genius.  Pure genius.

http://officeofstrategicinfluence.com/

Posted in Blog

Stephanie Miller is out! My chances have increased.

Rated one of the most influential female radio hosts has just come out of the closet. I kind of figured that…it makes sense. But I know all her listeners are really proud of her. She shouldn’t have any problems getting a date because she’s freaking hot! Congratulate her for letting herself be happy: stephanie@stephaniemiller.com.

Posted in Blog

From Here to There

After a lot of thought, I moved out of Doteasy.com. It was a great starter home, but the rent got higher as I wanted more options. So, I moved into GoDaddy.com. The economy package is a great deal. Check it out:

If you end up getting anything through GoDaddy, you should send some love my way:

Support me when you order from GoDaddy.com

Posted in Blog

WordPress Cross Posting

After a good year, I’m back on the Web.  I had deleted my myspace and facebook accounts because they take so much time to manicure.  I was excited to see that there are plugins to update each of these social sites from WordPress.  Two birds, one stone.  I created new accounts and even threw a little Twitter action in the mix.  So, this post is a test to see if these plugins work.

Posted in Blog
Comments Off

Save some time with $_SERVER variables

I spend a lot of time testing out certain things with $_SERVER array.  I often forget what I should be getting as a value for a specific variable.  Sometimes what variable it is that I am wanting to work with.  Here’s a quick loop that can generate the $_SERVER array all nice and neat like:

  1. foreach ($_SERVER as $variable =&gt; $value) {
  2. 	echo $variable . " = " . $value . "&lt;br /&gt;";
  3. }

To jazz it up, you can add unordered list elements or tables to it.  What’s not to love?

Posted in PHP Tutorials | Tagged as ,

PC Gamers of Spanaway

There’s nothing like a local computer business. PC Gamers in Spanaway is where I got my first computer and it’s good to see that after all these years they’re still around.

Posted in Blog