I have an html form that accepts user info(Name, Contact Number) I need to store them into the sql server table.
How can I store them? There is no code behind,no asp page, nothing. Just an html page and an sql server.
this is the HTML form.
I would like to know whether php instead of html is useful for this or not.
<table width="300" border="0" align="center" cellpadding="0" cellspacing="1">
<td><form name="form1" method="post" action="insert_ac.html">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<td colspan="3">Insert Data Into mySQL Database </td>
<td width="301"><input name="name" type="text" id="name"></td>
<td><input name="lastname" type="text" id="lastname"></td>
<td><input name="email" type="text" id="email"></td>
<td colspan="3" align="center"><input type="submit" name="Submit" value="Submit"></td>
There is no either/or here: to do what you want, you must use both HTML and PHP.
The primary function of HTML is to structure a document and describe how it will be displayed. A secondary function is to allow the user to input data, which HTML will deliver back to the server. It cannot actually do anything with the data.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)