Home

01
Jul

I was putting together an upload form today that uploads to a file to PHP. On submit, the $_FILES var was empty and for the life of me I couldn't figure out what was going on.

Attempts:

  1. I tried a print_r on both $_POST and $FILES. Both showed up empty.
  2. Added info to the $_GET to make sure the POST was even going to the action page.
  3. Made sure I had enctype="multipart/form-data" in the form.

Solution:

Apparently for these forms to work, the input type="file" also needs the name attribute. Once I added name="file" the $_FILES var showed with upload data, just as it should. Anyway, I hope this saves someone some time.

written by jackson | comments(0)
17
Jun

Recently, I've started looking for different tech news sources (in companionship to slashdot). Mainly because I wanted to be more thorough about what I find for tech news. I want to be ahead of the curve. I realize that takes a lot of work and a lot of intel because there's other devs doing the same thing. Not only that, but now that I'm a "small fish" -- No one comes to me with new products they are developing. Rather, I have to scour the web myself (pros and cons). Anyway, Read Write Web is my latest find for "nerdy" news. Enjoy!

written by jackson | comments(0)
04
Apr

If you are into CSS check out this link on Ten CSS Tricks you may not know.

written by jackson | comments(0)
04
Apr

I've found out some cool things about firebug this last week that involved JS and the DOM. If you don't know the extent of what firebug can do, you'll be better off finding out..

written by jackson | comments(0)
09
Feb

I found a CSS tip today that was new to me. You can find it as the last item on this CSS Validation Advanced Tips page.

Incase the link ever changes. The tip is to use: element * [att] (p * [href]) to target an element with the specified attribute on it. Targeting any p element with the attribute 'href' on it. Pretty nifty.

written by jackson | comments(0)
Syndicate content