Tuesday, May 28, 2019

linking HTML form with database directly without ModelForm

fase.html
<form method="post">
    <label for="email">Email address:</label>
    <input type="email" class="form-control" id="email"> 
  
    <label for="phone">Phone: </label>
    <input type="text" class="form-control" id="pwd">
       
          <input type='submit' value='post' />
 
</form>

the models.py contains email and phone number also

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/055b76f9-d8dd-48ca-9f25-fa6700aff4c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment