A couple of things wrong with that one, "id" should be "name":
Code:
<?php
if ($_POST['name'] && $_POST['pass']) {
$url = 'http://'.$_POST['name'].':'.$_POST['pass'].'@my.com';
} else { ?>
<form action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" method="post">
<div class="form_field">
<strong>Username:</strong>
<input type="text" id="name">
</div>
<div class="clearthis"> </div>
<div class="form_field">
<strong>Password:</strong>
<input type="password" id="pass">
</div>
<div class="clearthis"> </div>
<div class="form_field">
<input type="image" src="/images/loginBtn.gif" class="button">
</div>
</form>
<?php } ?>
Hope this helps.
Bookmarks