Hello, I am a learner of PHP. I am having one collapsible form including name,email address and submit button.Now I want to validate name(should not blank),email address(not blank and validate email address) and those values should store in db and mail must be sent to admin.So how can I achieve this functionality?Can anyone give me proper example which is having all above functionality. Thanks in advance.