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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:44:43+00:00 2026-06-18T11:44:43+00:00

Since mostly a backend guy, I am not sure how can I achieve the

  • 0

Since mostly a backend guy, I am not sure how can I achieve the following since it
requires some interaction with the browser.

So, I have a the following things so far.

A communication protocol where server is in python and client is in javascript code.
Ultimately, I want my data to reach to that javascript code.

Now, this data is being captured from browser.

As a practice.. what I am trying to do is.. have two radio buttons on my browser and a submit button

  *radio A
  *radio B
  * Submit

Now, when the user presses submit, I somehow want to create a query “user submitted: A (or B)” and this query i am able to capture on python script.

I am at lost on how to do this.

My guess is that “submit” invokes a python script.
But what if my python server is always on .. how do i parse that response from the click of browser to this python server?

  • 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-18T11:44:44+00:00Added an answer on June 18, 2026 at 11:44 am

    This is the way it usually works:

    1. Client (browser) visits webpage and initiates request to server
    2. Server (in your case, Python) handles request and writes HTML response, including the radio-button form
    3. Client fills out form and hits Submit, triggering another request to the server
    4. Server handles the second request and writes another response (e.g. “Purchase successful”, “message posted”, etc.).

    Note that the second request is a brand-new request. You may want some way of linking the first request to the second one unless the second request is anonymous. Some frameworks will do that for you, but if you are making the server from the ground up you’ll want some kind of session mechanism to keep track of state.

    To get the client to make the second request, the simplest is to add appropriate action and method attributes to the form element in your HTML. action specifies the URL to access for the form request, and method is either GET or POST. (More advanced usage, e.g. on this site, typically uses AJAX to make the submissions instead).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some strange restrictions on the following problem. (My friends aren't very good
Since I'm not really proficient with databases, some details may be irrlevant, but I'll
Since I have been mostly using script languages in the past time but now
Since regular jQuery animations are not fluent on iOS ( .hide() , slideDown() ),
Since now I have only used plugin for editing and the way I use
Since I have no errors I don't know if this is the right place
Since each thread has its own stack, its private data can be put on
Since Intellij does not yet support the Play-Scala-Template-Engine I was thinking about using plain
Just trying out a simple rails app, mostly going for an API backend with
I just decided to give a go to Grails and since I use mostly

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.