I have this form on my project and I want to enable the user to input as many data as they want and then save this data to mysql table. I dont know how to process this on my php code. Can someone help me ?
<form name="frm9" action="<?php echo $_SERVER['PHP_SELF'];?>" onsubmit="return checknull3();" method="post" >
Operator Name <input type="text" name="msoname"> <br><br>
Number of households <input type="number" name="msohhs"> <br><br>
<input type="submit" value="Add more">
</form>
I was thinking to stay on the same page and pass the data on the table when the users clicks on Add more button. Then clear the form and add some more data?
How can I implement this?
PS: My checknull function just checks for null input (all data must be filled).