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 8660171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:11:27+00:00 2026-06-12T16:11:27+00:00

I have an input field in a form – lets say: <form action=/subscribe> <input

  • 0

I have an input field in a form – lets say:

<form action="/subscribe">
  <input type="emailadress" id="emailme" value="Email Address" />
  <input type="submit" value="Subscribe" class="cat_button" />
</form>

Then on the next page (subscribe.html) I have a full form.

What I’m trying to do is have the user enter their email address then press subscribe.

It takes you to subscribe.html

When you get to that page, your email address is already pre-filled.

EDIT : I don’t have access to server side programming – only Javascript, HTML and CSS.

I’m looking into HTML5 session storage but have had no luck.

Is this possible?

  • 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-12T16:11:28+00:00Added an answer on June 12, 2026 at 4:11 pm

    This is certainly possible. If you want an entirely client-side solution, one approach might be to capture the click event using a Javascript click listener, select the two elements in the form and read their values, and place those values into the session store. In the Javascript for the subscribe.html page, be sure to read out the values from the session store and fill in the appropriate input elements in the subscribe.html page.

    Javascript + jQuery for first html page

    $(document).ready(function() {
    ("myform").click(function() {
        var useremail = ("selector_for_email").val();
        sessionStore.setitem("useremail", useremail);
        // Don't preventDefault, allow form POSTing
    });
    });
    

    Javascript + jQuery for the second html page

    $(document).ready(function() {
            var useremail = sessionStore.getItem("useremail");
            ("input_elem").val(useremail);
        });
    

    If you’re open to a solution that involves the client and server, simply allow the user to submit the form (sending a POST message). In the route handler for subscribe, read out the POSTed data and populate the elements in the view template with the input values.

    Python Back-end

    @app.route('/subscribe')
    def subscribe():
        if request.method == 'POST':
            useremail = request['name_attr_of_email_input']
            return render_template(subscribe.html, email=useremail)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an hidden input field with a value, <form> <input type=hidden value=product/> <select
I have this field in one form : <input type=text name=promocode id=promoCode value= style=width:24%
I have an input field: <input type=text class=form-textbox id=input_16 name=q16_yourStory16 size=300 value=Your Story />
I have an input field: <input cid=Topic_Created name=Topic.Created size=25 type=text value=6/5/2011 8:22:45 AM />
I have a input field like below, <input name=update_price type=text id=update_price value=£ size=8 maxlength=8
I have an input field that asks for an email address followed by a
I have a simple input field inside a form tag: <body> <form action=#> <label>Input</label>
I have an input field in a form. Upon pushing submit, I want to
I have a basic unordered list with an input field/form below it. I would
Quick question, is it possible to have an input field in a form use

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.