有一个网页,其中有用户注册详细信息。我收集的用户详细信息不是表格,而是以其他方式,我在下面发布HTML代码。如何使用php将这些用户详细信息存储到postgresql数据库中。我已经阅读了许多与使用php从数据库中的表单存储数据相关的答案,但这个不是形式。我是网络开发的新手。
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="form-group">
<label for="companyname">Emergency Contact Details *
</span>
</label></label>
<input type="text" name="econtct" id="econtct" class="form-control" value="0">
</div>
</div>
</div>
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
<div class="form-group">
<label for="companyname">Contact First Name *
</span>
</label></label>
<input type="text" name="fnam" id="fnam" class="form-control">
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
<div class="form-group">
<label for="companyname">Contact Last Name *
</span>
</label></label>
<input type="text" name="lnam" id="lnam" class="form-control">
</div>
</div>
</div>
</div>
</div>
<!-- //profile-bg -->
<!-- profile-info -->
<div class="row profile-info-block">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="info-head">Date of Birth
<span class="asteriskField">
*
</span>
</label>
</div>
<div class="info-text">
<div class="col-sm-10">
<div class="input-group">
<div class="input-group-addon">
<i class="fa fa-calendar">
</i>
</div>
<input class="form-control" id="date" name="date" placeholder="DD/MM/YYYY" type="text"/>
</div>
</div>
</div>
</div>
</div>
<div class="row profile-info-block">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="info-head">Mobile</div>
<div class="info-text">
<input type="text" disabled="disabled" name="mobile_no" id="mobile_no" class="form-control">
</div>
</div>
</div>
<div class="row profile-info-block">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="info-head">Blood Group</div>
<div class="info-text">
<select id="bgr">
<option value="none">Select</option>
<option value="O+">O +</option>
<option value="O-">O -</option>
<option value="A+">A +</option>
<option value="A-">A -</option>
<option value="B+">B +</option>
<option value="B-">B -</option>
<option value="AB+">AB +</option>
<option value="AB-">AB -</option>
</select>
</div>
</div>
</div>
<div class="row profile-info-block">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="info-head">Aadhar Number</div>
<div class="info-text">
<input placeholder="Enter here" type="text" name="uidd" id="uidd" class="form-control" >
</div>
</div>
</div>
<input type="hidden" id="nm">
<div class="row profile-info-block">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="info-head">Address</div>
<div class="info-text">
<input type="text" placeholder="Enter here" name="address" id="address" class="form-control" >
</div>
</div>
</div>
<p>
<!-- profile-info -->
<!-- //body container -->
</p>
<div align="center"> <button type="button" onClick="validat_form()" class="btn btn-warning">Next
</button>
</div>
</div>