connection of arduino with my website

hi
i read about it and i have some questions ... i hope u help me with them

first how to make that if user enter the username and password right redirects him to next page ?

can you show me the part of code can do authentication and redirect ,

thanks alot