Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9012515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:01:09+00:00 2026-06-16T03:01:09+00:00

im making a simple email subscription project.i have a html file which is having

  • 0

im making a simple email subscription project.i have a html file which is having email text field.And now i want to get the entered email value from the html page and store it in mysql database.I dont know how to move on.i googled and saw everywhere but iam not able to understand properly.i also checked the dangoproject website.can any one simply explain me how to do this.Thank you in Advance

email.html

<html>
<head>
</head>
<body>
<form action="." method=POST>
enter email<input type =text name="email">
<input type=submit value="submit">
</form>
</body>
</html>

models.py

from django.db import models
class ferpost(models.Model):
 useremail=models.CharField(max_length=50)

views.py

from django.http import HttpResponse
 from django.shortcuts import render_to_response
 def ind(request):
    name=request.POST["form-email"]
    print name
    return render_to_response('email.html')

urls.py

 urlpatterns = patterns('',
# Examples:
# url(r'^$', 'webapp1.views.home', name='home'),
# url(r'^webapp1/', include('webapp1.foo.urls')),

# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

# Uncomment the next line to enable the admin:
# url(r'^admin/', include(admin.site.urls)),
url(r'^$','app1.views.ind'),
)

settings.py

 INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
#Uncomment the next line to enable the admin:
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
'django.contrib.admindocs',
'app1',#this is my app name 
 )
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T03:01:10+00:00Added an answer on June 16, 2026 at 3:01 am

    Get the email from POST data (querydictionary), save it your model class and you are done.
    In your view

    def ind(request):
        email = request.POST.get("email", "noting@nothing.com")
        f = ferpost(useremail=email)
        f.save()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making a simple email application in Java. I have an Account class.
I have some email accounts in a if condition and making some simple decisions
I'm having difficulty with building a HTML email. I currently have converted my entire
I am making a simple timer app. I have a uitable with multiple rows.
I have a simple mfc project built on a CDialog. I also have a
I am making an application which takes image from the camera and then email
i am making simple autosuggestion (autocompleter) plugin with jQuery. Unfortunately i have to use
I'm making a really simple email validation script that basically just checks the following
I am making an applicattion that uses gmaps4rails gem which is a simple contact
I have a simple textbox with an email address. I need to know the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.