hello friendz..
jst a small query..
i made simple userinput form as userform.php....
after submit the form..values are passed to adduser.php for inserting to database... i have a serverside validation tht username cant be same...!!
if(username is laready exist)
{
[B]header('location:userform.php?error=1');[/B]//user send back to userinput form..
}
else
{
[B]header('location:login.php');[/B]//user logged in
}
i jst want to know, is header only solution... is there any alternative to it..?? what if i dont want to send 'error=1' through url...!!! then how can i send back the error msg..???
Waiting for positive reply..!!