My question is, How do I make it display the search page automaticaly when the search results is poastive insted of all that "WE ARE VERY SORRY! THE NAME THAT YOU HAVE SELECTED IS ALREADY REGISTERED. PLEASE TRY ANOTHER NAME."?
yea, you have two options here.
First option is that,include that seacrh form here again using include()and display a message "Domain already taken.Try another one here".
Second option is that print again that form codes directly..
i would suggest you to do something like following.
// When user clicks on search domain..
$con=mysql_connect ('localhost','dbase', 'anerson1');
//select your db
$result = mysql_query ("SELECT * FROM aarp
//issue sql statement
//domain is already taken..
echo "$domain_name already taken.Try another one heren";
echo "<form action="$PHP_SELF" method="post">n";
echo "Enter a Domain name: <input type="text" name="domain_name">n";
echo "<input type="submit" name="submit" value="submit">n";
//Redirect to registration page
//or you can include the registration form using include()...
if you are using the header() function for redirecting the page to registartion page then make sure that no white space or html tags are their before your php deliminator(ie, before "<?").
"The fear of the LORD is the beginning of knowledge..."
[This message has been edited by Shiju Rajan (edited August 05, 2000).]