I am a beginner programer. And i creating a website.I have a problem, i want a code that help me to make the web. I want when user complete the ContactUs form and click on submit button.It show msg whether the user Login or not.If user Login,the form will successfully submitted.If not it tell the user to register or login first and directly move the control on login page.I will require this in php.Please help me.