best way to handle required form fields

From: Date: Wed, 14 May 2003 00:20:11 +0000
Subject: best way to handle required form fields
Groups: php.general 
Request: Send a blank email to php-general+get-147517@lists.php.net to get a copy of this message
hi there i was wondering what would be the most ideal way to handle required form fields say if they were empty and are required , should i do a check and send an error and return to the page with the required fields in red or would a javascript alert box (ugly) be ok ? reason being my prefered way would be sending an error although with my previous issue with custom error handlers might be tedious :|

« previous php.general (#147517) next »