My trip back to Kinko’s this morning went smoothly. State St. Kinko’s is far superior to Wolf Rd, for anyone who is interested/cares.

Let’s just face it, I do not fare well on less than 8 hours of sleep. I’m going on a bottle of Mountain Dew and a can of Coke right now. Caffeine goodness.

I’m doing my Net Art project right now. My motivation is close to zero because I’m taking that class pass/no credit. Apparently I have an A right now so I’m not really too worried about not passing. I do, however, have to have some kind of project to present tomorrow. So yeah.

I fought a lot this evening with checkboxes in php forms. Basically – in forms, if the checkbox isn’t checked, the variable doesn’t exist on the next page. That gave me a headache. If you have any idea and/or are interested in what I’m talking about, read on in the “more” section.

So, say you have a checkbox in the form with the name “happy”. Normally if you would do something like this in php:

$happy = $_POST["happy"];

It will only go successfully if you have checked off the checkbox in the previous screen. I tried checking if $happy was NULL, 0, unchecked, etc etc and kept getting the dumb errors.

Apparently there’s a tricky function in php called “isset” that checks and sees if the variable has been set to anything. So you can do this:

if(isset($_POST["happy"])){
//stuff you do if the variable is set }

else {
//stuff when the variable isn't set
}


Yahoo.

2 Responses to “Caffeine and procrastination inspired entry”