470,624 Members | 2,202 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,624 developers. It's quick & easy.

Extract Mysql row by Javascript

I want to extact a name against name_code in the same form while it was filling.
the name and name_code are exist in sql table. Form used

<form name="form1" method=get>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="50%">Name_code</td>
<td width="50%"><input type="text" name="name_code" size="30"></td>
</tr>
<tr>
<td width="50%">Name</td>
<td width="50%"><input type="text" name="name" size="30"></td>
</tr>
</table>
<input type="submit" value="submit">
</form>

Dear sir, I want to auto fill the name field with the help of Javascript.

Thanks
Oct 29 '06 #1
1 1665
ronverdonk
4,258 Expert 4TB
Note: read the Posting Guidelines at the top of this forum! Especially the part about showing code within the appropriate tags!

You'll need Ajax to accomplish that. Such a function contains (D)HTML, JavaScript and PHP code. It would go too far to post all the required code in this forum. Therefore look at this code sample at the Dynamic client lookup entry. That does exactly what you are looking for:
This script uses AJAX to autofill a form. Open the demo and type in 1001 in the "client ID" text field. AJAX will when you have done this call a script on the server and auto fill the rest of the form with client data.
Ronald :cool:
Oct 29 '06 #2

Post your reply

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

Similar topics

4 posts views Thread by Don Crossman | last post: by
reply views Thread by SteveJ | last post: by
2 posts views Thread by RootShell | last post: by
reply views Thread by Ashok | last post: by
9 posts views Thread by chrisspencer02 | last post: by
2 posts views Thread by learnyourabc | last post: by
2 posts views Thread by clai83 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.