Posted by Dustin on 11/28/78 11:46
This seems a lot easier to me using JavaScript
<html>
<head>
<script>
function redirect()
{
var domain = "exampledomain.com";
var name = document.getElementById("name").value;
name = name.toLowerCase(); //put everthing in lower case
name = name.replace(" ", "");
document.location.href = "http://" + name + "." + domain;
}
</script>
</head>
<body>
Name: <input type="text" id="name" /><br />
<button onclick="javascript:redirect()">Submit</button>
</body>
</html>
[Back to original message]
|