$HTTP_POST_VARS is now depreciated. You should use $_POST['...'] instead.
As for the isblank function, the whole point was to return either true or false, and depending on the outcome of the if statement as a result of those returns, you either did one thing or the other.. but instead of returning one of those values, you now echo out "" if the preg statement is true? And you jump to another location if it's false? I'm not sure I follow any of that (logically speaking).
I would do all the actions (be it echo "" or jumping to another location - or what have you) in the if statement instead.
A word of advice with regards to always asking if something will work or not. A good trait of a programmer is someone who takes self initiatives in testing things out (and if it doesn't work, troubleshoot things like say examining variable contents to see what they contain, and checking to see if the current problem solving logic is correct of not in the code structure / setup). Getting into the habit of experimenting and troubleshooting is important in becoming more self sufficient.
It all goes back to that saying 'Give a man a fish, and he can eat for a day.. teach a man to fish, and he can eat for a lifetime'... You must teach yourself to fish so-to-speak. Search issues online (including the php manual), or see if there is a good php book at your local bookstore that can really shed light on things.
Nothing wrong with approaching forums when your stuck mind you...That's what they're there for.. but there is a difference between being stuck after trying and trouble shooting stuff, and being spoon fed. My apologies in advance if I'm sounding harsh. The intention is not to knock you down nor discourage you (just the opposite in fact).
I know all this advice is not the easy way.. but trust me when I say it is the best way. 🙂 I've been through my own coding trials and tribulations (with more to come I'm sure - I too have a long way to go). The key is learning how to self advance (and with the help of others when what you have tried / experimented / reworked things that still fail).