hiii everybody,
i have a little code that inserts the data into the databse. but the problem is the insertion should be peroformed only when a button is clicked. i have problems in this because i am not able to call the function when the button is clicked. hope anyone can help me out with a good code.
echo"Enter the name :";
echo"<input name='names' type='text'>";
echo"<input type='submit' value='ADD name' align=center><b r>";
$link = mysql_connect(" ","","");
mysql_select_db ("db");
/*the below statements must get executed only when the button is clicked*/
$query="insert into table value("");
mysql_query($qu ery);