This should be a server matter, don't rely on a username/password combination in html / javascript. You might build your own protected site but an lms also takes care of it.
You can do this but the username and password will be fixed. This has been bought up many times before and the real answer to making this work is to use a management system.
You can also post this message as registered user. [Log in]
Author:
E-mail:
Subject:
Options:
Notify me if there is a new reply
Message emoticon:
Message body:
Insert smilie into text:
Registration
Permanent registration allows you easier message posting and e-mail-notifying. Use "Log in" link to log in (if you are already has account in community) or register (if not). Note, that if you are CourseLab user, then your account is automatically created for you (use your e-mail as login and CourseLab activation code as password to enter your personal cabinet).
E-mail
This is optional field. If you enter e-mail, you Author name will become the "mailto" link.
Main topic
This is optional field. If you select main topic, then this thread will be the subject for filter by topic.
Notify
If this option is selected, you will receive the e-mail notification on every new reply to your message. Note, that the "E-mail" field must be filled here or in your personal cabinet for this option takes effect.