I'm not having a go at you mate. If you just ask for help without doing a bit of research and hold your hand out for code (so to speak), you'll never learn how to do things for yourself. Not to mention you'll never understand what the code actually does.
I'm all about helping, but sometimes you have to do things for yourself. Then, and only then should you post about something. We were all newbs at one point in our life, and I understand that, but just asking for code is not the right way to go about it.
Now, like I said, I'm all about helping.. so here's some code.
- Code: Select all
<input type="text" name="lazy">
PHP:
if(!$_POST['lazy'])
{
echo("Fill it in please");
}