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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:54:53+00:00 2026-05-23T20:54:53+00:00

If data is submitted via POST through the classic HTML form method is it

  • 0

If data is submitted via POST through the classic HTML form method is it possible to access those values using standard Javascript without libraries? How would this be done?

Edit for clarity: The variables have been posted. I am trying to access those values via javascript.

  • 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-05-23T20:54:55+00:00Added an answer on May 23, 2026 at 8:54 pm

    Thinking outside the box: (A hack that should never see the light of day)

    For this example the posted variable is “a”:

    var val=document.URL;
    var start;
    start = val.search(/a=/);
    var end;
    end = val.search(/&/);
    var thispos = val.substring(start+2,end);
    
    1. document.URL returns the url of the current site.
    2. val.search returns the position of the first occurrence of the regular expression in
      the parameter field.
    3. substring the two and…
    4. thispos now contains the posted variable.

    Brutal but functional. Is this too terrible to be an answer?

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

Sidebar

Related Questions

Ok, I have an in template function that get's submitted via method=POST. But I
I have an each method that is run on some user-submitted data. Sometimes it
I'm trying to Integrate HTML Purifier http://htmlpurifier.org/ to filter my user submitted data but
My form contains a textbox for date input. When submitted the data is used
I have an online gateway which requires an HTML form to be submitted with
I have a form on a page that sends data to php file via
Ok, situation: an https / ssl page jquery a form submitted via ajax to
I am setting up a form using this PHP that loops through all records
I am trying to catch a form submission with jquery that is submitted via
What are the ways to retrieve data submitted to the web server from a

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.