php user profile page creation
<p>i have a sign up page.As soon as the form is filled out and user clicks "submit" there has to be created the user's profile page:index.php/$username.I know it has to do something with url_rewrite but don't know exactly how to do it.A profile should be created from the sample profile.html</p>

<pre><code>?&gt;php
$user_name=$_POST['name'];
if (isset('$_POST'['name'];'))
{
url_rewrite("/users/profile.php?username=$user_name")  `
}
?&gt;
</code></pre>

<p>And here is the profile.php:</p>
