Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You need to give name attribute to your html elements.Without name attribute no value will be posted after form submission.So try like the following.Remember whatever you give as the name attribute the same will be the key of $_POST array.So in your php after form submitting try the following to see what is are the values submitted via your form.Then do insert query after necessary coding.</p> <pre><code>echo '&lt;pre&gt;'; print_r($_POST); die(); &lt;form method="post" action=""&gt; &lt;div class="line"&gt;&lt;label for="user_name"&gt;Username *: &lt;/label&gt;&lt;input type="text" id="user_name" name="user_name" /&gt;&lt;/div&gt; &lt;div class="line"&gt;&lt;label for="user_password"&gt;Password *: &lt;/label&gt;&lt;input type="password" id="user_password" name="user_password" /&gt;&lt;/div&gt; &lt;div class="line"&gt;&lt;label for="user_surname"&gt;Surname *: &lt;/label&gt;&lt;input type="text" id="user_surname" /&gt;&lt;/div&gt; &lt;div class="line"&gt;&lt;label for="user_email"&gt;Email *: &lt;/label&gt;&lt;input type="email" id="user_email" name="user_email" /&gt;&lt;/div&gt; &lt;div class="line"&gt;&lt;label for="user_phone"&gt;Telephone: &lt;/label&gt;&lt;input type="text" id="user_phone" name="user_phone" /&gt;&lt;/div&gt; &lt;div class="line"&gt;&lt;label for="user_address"&gt;Address *: &lt;/label&gt;&lt;input type="text" id="user_address" name="user_address" /&gt;&lt;/div&gt; &lt;div class="line"&gt;&lt;label for="user_pin"&gt;Post Code *: &lt;/label&gt;&lt;input type="text" id="user_pin" name="user_pin"/&gt;&lt;/div&gt; &lt;br&gt; &lt;div style="margin-left:50px;"&gt;&lt;input type="submit" value="Submit" /&gt;&lt;/div&gt; &lt;/form&gt; </code></pre> <p></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload