It worked!!!Thanks a million.I have a few more doubts which I'm posting below.
1.I wanted PHP to process & output the names from my form in the 'first letter of the word in uppercase & the rest in lowercase' method.
I did this because if the user inputs the same name in some other way(like all caps),php will consider it as another name.And secondarily the output will look weird like 'JOhn' if the user makes a mistake.
I used the following method to overcome this issue
$name = strtolower($name);
$name = ucwords($name);
Is this the correct method or is there any direct method to make PHP identify it as a name?
2.Is there any method to restrict the input type of an html form to numbers using html/php?
3.At the moment,if a user submits my form without completing all the fields in it,he is greeted with an error by php.I wish to prevent my form.html page from submitting the form until al the fields are filled.
Thank you once again.