for validating form field we can use php or javascript too. both are easy but javascript is better than php. You can use like below given example. <script type=text/javascript> function check() { if(document.getElementByID('f_name').value=='') { alert('Please enter Name'); return false; } } </script> <form action=post onSubmit='return check();'> <input type=text id='f_name' name='f_name'/> <input type='submit' value='submit' /> </form> thank's regard Avishek Kumar Junior php developer Nettrackers --- In php-objects@xxxxxxxxxxxxxxx, Nandu Prajapati <me_nandu55@...> wrote: > > > > > > hello ,All ,,,Friends > i want help ,how to make Validation for Submit button > in my page i have 5 fields like first_name , last_name, phone_no...like that > > so when clien Click Submit button > if any field is Empty ,,,ya it's not valid lenght ,,so for that > a messege is shaw and tell what to do... > > so,,please anyone help me,,for that > any Javascript ya function for that??? > > ----nandu > --Ahmedabad > > > > > Check out the all-new Messenger 9.0! Go to http://in.messenger.yahoo.com/ > > [Non-text portions of this message have been removed] >