Yes...the functionality is all there, straightforward logic. It is certainly no crime to mix HTML and PHP - that's where a lot of PHP's strength comes from!
I'll make a couple of suggestions. I don't know enough about VBScript to know if you'll be familiar with the ideas, so apologies ofered in advance!
You can probably guess that this will turn into a huge file. You might want to separate each page into a file, and use include() to bring in the one you actually want to display.
For example, you might have an admin.php page. It would go:
--------------------8<------------
<?
<form method="POST" action="default.asp?ac=admin&password=done">
Lösenord:
<input type=password name="password" size="15" maxlength="20" style="background-color: #CFCFCF; font-size: 8px; font-family: Verdana, Arial, Helvetica, sans-serif; border: 1px; border-style: solid">
<br />
<input type=submit VALUE="Enter" style="font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif">
</form>
?>
and then include it in your switch() statement thus:
case('admin'):
include('admin.php');
break;
All your pages will have the same URL. Instead of using include('admin.php') you could use header('Location:admin.php') and the visitor's browser will then go to the admin.php file itself (and that will be the filename listed in the URL).