View Single Post
Old 07-13-2009, 05:47 PM   #10 (permalink)
adamdecaf
The Addict
 
Join Date: May 2009
Posts: 287
Thanks: 5
adamdecaf is on a distinguished road
Default

Quote:
Originally Posted by khile View Post
ive tried the method mentioned above but keeps returning username not found even when it is say i enter admin is registration field it then checks database and should come back saying username unavailable but if i put say khile it should come back and say available as no one has registered with that name


below is the textbox i want to include lookup in

PHP Code:
<label><strong><?php echo  $lang['Username'?></strong><br /><input type="text" class="textbox" name="req_username" size="40" maxlength="25" /><br /></label>
Well, you need to get the HTTP responce before you query. Also you need to change the "host", "username", "password" to a database with populated tables.

PHP Code:
<?php
// You will need to format, and secure this code before the query.
   
$data $_POST['req_username'];

// Now use the code from above...

?>
Oh, don't forget to change the tables that the query looks at.
__________________
My Site
adamdecaf is offline  
Reply With Quote