By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,890 Members | 1,048 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,890 IT Pros & Developers. It's quick & easy.

Want to get old data

P: 28
dear all.....

<?php
if(isset($_POST['submit']))
{
$username=$_POST['txtusername'];
$password=$_POST['txtpassword'];
$search_username=mysql_query("SELECT username FROM table");
$result=mysql_result($search_username,'0',username );
if($result==$username)
{
echo "Your user name is already exist";
}
else
{
$query="INSERT INTO.................";
}
}
?>
<html>
<body>
<form action=thisform method=post>
<table>
<tr>
<td><input type=text name=txtusername></td>
</tr>
<tr>
<td><input type=text name=txtpassword></td>
</tr>
<tr>
<td><input type=text name=txtconfirmpassword></td>
</tr>
<tr>
<td><input type=submit name=submit value=submit></td>
</tr>
</table>
</form>
</body>
</html>


in above code when i press submit button...
if user name is already exist in my database.
i give a above message.. but user input old data in this username text box are clear... i don't want that.. So .. how can i get old days that the user typed. when user press submit button...
Mar 2 '07 #1
Share this Question
Share on Google+
1 Reply


ronverdonk
Expert 2.5K+
P: 4,258
I asked you in a privious thread post to enclose your code within code or php tags, as stated in the Posting Guiudelines.

You obviously refuse to do this. This means that I will not look at your code.

moderator
Mar 2 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.