RonnieCosta50 Posted June 3, 2013 Share Posted June 3, 2013 I have a textbox. When the text that is typed into the textbox changes, I want to search my database for what is in the textbox. I want to do this rather than a search button because my website is really complicated and I'm simplifying it in my explanation to make it easy to understand. I currently have an alert in my textbox that displays the text that was typed in the textbox on change. It looks like this. <input name="txtPlayerName" tabindex="0" style="width: 150px; background-color: #BBAE85;" maxlength="15" required="required" autofocus="autofocus" placeholder="LoU screen name" onchange="alert(this.value)" /> I have a seperate php file called search.php. It contains my code to search the database based on criteria in my input textboxes. Question: How do I tell the textbox to run search.php onChange? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.