After I add a button and a text field, how can I program that button to simply take what's in the text box and put it into a variable? I have no idea how the button click event works.
<form id="form1" name="form1" method="post" action=""> <label> <input type="submit" name="Searchbydistro" id="Searchbydistro" value="Submit" onclick="xxxxxxxxx " /> </label> <label> <input type="text" name="txtboxsearchbydistro" id="txtboxsearchbydistro" /> </label> </form> Would I put a PHP statement in the space where the xxxxxxxx is at?
Any help would be great!