sorry..never wrote my question. carelessness ugh..which is probably whats wrong with my script. 😉
i had it working. i changed it a bit (dont remember what) and now i have a line showing up upon viewing the page the first time. it isnt suppose to show up until submit is set. if you can help (and if you bothered to look at my 2nd post to figure out my question) thanks alot!
heres the code again.
/ if submit has not been set, draw the form. /
/ else make new directory and echo 'success'. /
if(!isset($submit)) {
echo"<form align='left' name='ahhshit' action='$PHP_SELF' method='get'>
user id: <input type='text' name='id'><br />
password:<input type='password' name='password'><br />
re-enter password:<input type='password' name='passwordconfirm'><br />
<input class='submits' type='submit' name='submit' value='get flashed!'>
</form>";
}
elseif (!@mkdir("$id","")) {
echo("Username is already taken. Please try again.");
} else {
echo("Successfully created account for" . " " . $id . ".");
}
/ set file variable. if copying file to dir is unsuccessful, then echo 'failed'. /
/ else echo homepage link. /
$file = "main.php";
if(@copy($file, "./$id/index.php")) {
echo "Click <a href='$id/index.php'>here</a> to go to your homepage.";
}