I have a question regarding pulling results from a MySQL db using a "find" button. Here is the setup:
I have a contact field where I allow users to enter in the name of someone that they want to do a search on. Then they can hit a "Find Company" button to fill a text box with the information on the company that the contact works for. Currently, the code looks like this (as suggested to me):
Contact: <input type="text" name = "contact">
<input type="button" name="find" value="Find Company!">
Company: <input type="text" name="company" value="<?=$co ?>">
<input type="hidden" name = "co" value="<?=$co ?>">
In the top of the code, I also did a search of the db (mysql_connect, mysql_query, etc). There are no parse errors, but the text box doesn't fill in when the button is pushed.
Can you tell me what I am missing? (and yes, I am a newbie to this, but learning very quickly).
Thanks!!