don't use java script, to validate the fields. Some users may block Java Script, so there your code won't work. Dear Friend, you can go with PHP Validation only, like After you click on submit, it should be redirected to itself and using isset() and is!empty() functions, u can check that user has filled all the values. for ex: if(isset(S_POST["submit"])) foreach ($_POST as $abc=>prt) if(isempty($abc)) raise_error() // user defined function echo "form name =\"signup\" method=\"POST\" action=\"$_SERVER[PHPSELF]\">" and all your stuff here echo "</form>" I think so above stuff will help you Regards Bhavin New Document Send instant messages to your online friends http://in.messenger.yahoo.com PHP Data object relational mapping generator http://www.metastorage.net/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/