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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:52:23+00:00 2026-05-13T23:52:23+00:00

a couple of questions (never done javascript before). Below is part of the what

  • 0

a couple of questions (never done javascript before). Below is part of the what happens on submit, what is something, the action, the php script its sent to?

Also is there any software you guys reccomend for checking you’re javascript, like the equivalent of an ide? im using notepad++.

Is the rest the right sort of idea? I’m using several else ifs for each method, checking valid == true.

<SCRIPT LANGUAGE="JavaScript">

<form action="something" onsubmit="return ok()">

function ok() {

    if (validate_Info() == false)   
    {
        alert('Please enter a name');

        return false;
    }
else if

else if
  • 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-13T23:52:23+00:00Added an answer on May 13, 2026 at 11:52 pm

    Yes, the action attribute in the form tag is the URL that the form will be sent to.

    You are using some pretty old example code, the language attribute has been deprecated for a long time. Here is an example that is more up to date with current coding standards:

    <script type="text/javascript">
    
    function validate() {
      if (!validate_Info()) {
        alert('Please enter a name');
        return false;
      }
      if (!validate_SomeOtherField()) {
        alert('Please enter some other information');
        return false;
      }
      return true;
    }
    
    </script>
    
    <form action="something" onsubmit="return validate();">
    

    As you see, there is no need to use an else at all. As you are returning from inside the if statement, the else is pointless.

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

Sidebar

Related Questions

I have a couple questions about SSL certificates. I never used them before but
Hello I have a couple questions about PHP exec() and passthru(). 1) I never
I've never used the ConcurrentDictionary object before and have a couple questions about it:
I have a couple questions about SSL. What happens if someone tampers or changes
I never worked with SOAP XML api before. I read a couple of similar
I often see something similar to this below in PHP scripts using MySQL query(SET
A couple of questions: I've never really used JS listeners other than onclick and
Have a couple questions, using GSON. I have a feeling that GSON might not
I've seen a couple questions on this but haven't been able to solve it...
I have a couple questions about exceptions. 1) when you hit a catch block,

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.