use cookies for login and logout and write the info into contact form

Q3, Q4, could been done togather.

The question is that provide code for a login feature.Once the user logs in successfully,every page of the site will display the user’s login name, along with a link allowing them to logout at anytime.You will need to use cookies to maintain a logged in state across all pages of the website.

the question 4 is once user has logged in ,and the fill out the enquiry form, automatically fill in the name and email fields when the user loads the contact.htm page.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s