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

  • Home
  • SEARCH
  • 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 8265341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:45:58+00:00 2026-06-08T04:45:58+00:00

Whenever I run my code, I get the error {error: Please use POST request}

  • 0

Whenever I run my code, I get the error {"error": "Please use POST request"} Does anyone know what this error means?
My code in jsfiddle: http://jsfiddle.net/Aidoboy/AdzwC/12/
the code:

/*jslint browser: true, devel: true */

function Submit() {
    //"use strict";
    alert("running");
    document.forms.form.submit();
    var owed = 0;

    function calc(n, o) {
        if (n >= 90) {
            owed = owed + 1;
            if (n >= 95) {
                owed = owed + 1;
            }
        }
        else if (o >= 80) {
            owed = owed + 0.5;
        }
        if (n > o) {
            owed = owed + 0.5 * (n - o);
        }
        if (n < o) {
            if (n < 95) {
                owed = owed - 0.25;
            }
        }
        if (n == 94) {
            if (o == 97) {
                owed = owed + 0.25;
            }
        }
    }
    calc(form.Math.value, form.OMath.value);
    calc(form.Sci.value, form.OSci.value);
    calc(form.ELA.value, form.OELA.value);
    calc(form.SS.value, form.OSS.value);
    calc(form.Elec1.value, form.OElec1.value);
    calc(form.Elec2.value, form.OElec2.value);
    calc(form.Elec3.value, form.OElec3.value);
    calc(form.Elem1.value, form.OElem1.value);
    calc(form.Elem2.value, form.OElem2.value);
    calc(form.Elem3.value, form.OElem3.value);
    alert(Owed);
}​​​​​
  • 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-08T04:45:59+00:00Added an answer on June 8, 2026 at 4:45 am
    document.forms.form.submit();
    

    This actually submits the <form>, you can’t do that in jsFiddle1. Just remove that line, if you want to run the JavaScript, why are you submitting the form?

    1: You can, but not using a <form>. You can test AJAX, see the docs. You’re getting the error “Please use POST request” because by default <form> use GET. jsFiddle doesn’t like being sent a query string, so it gave that error. You can POST stuff to it, but nothing will happen.

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

Sidebar

Related Questions

I get this error whenever I run this: Warning: mysql_num_rows() expects parameter 1 to
I get this error whenever i run the program Assignment makes pointer from Integer
Thanks in advance. This is my sample code. Whenever i try to run it
Whenever i try to run sqlmetal, i get this: 'sqlmetal' is not recognized as
Whenever I try to run this code: #Open file f = open(i.txt, r) line
I get the above error whenever I try and use ActionLink ? I've only
Whenever I try to run anything in my C# code I get the following
I want code to run whenever I create a new object. For example, see
I am facing this issue whenever I am trying to run Play 1.2.1 in
I am plannning to use whenever gem which among other things will also run

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.