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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:17:46+00:00 2026-05-15T15:17:46+00:00

echo function finishForm() { var answer = confirm(‘Are you sure these are the teams

  • 0

echo ”
function finishForm() {
var answer = confirm(‘Are you sure these are the teams you want to enter with?’);
if (answer) {
if(document.getElementByID(emailconfirm).value == “.$_SESSION[Email].”) {
form.action=\”esubmit.php\”;
form.submit();
} else {
alert(‘E-mail address do not match’);
return false;
}
}
}
function restartForm() {
var answer = confirm(‘Are you sure you want to start over?’);
if (answer) {
form.action=\”e1.php\”;
form.submit();
}
}
“;

I have a regular button calling this function. emailconfirm is a text input.
I want to confirm that they have chosen the right teams, then check if the email in the session and the email confirmation text match. If they do match Then i want to submit the form.
If they dont match, I want to alert the user they dont match, and just return to page so user can check emails and then resubmit.
This script is in my header.

EDIT: Haha sorry i submitted one before and it didnt go through, forgot to add my problem!!

When you click the button it comes up with the confirmation, clicking either yes or no doesnt do anything. The alert doesnt pop up if they dont match and if they do match it doesnt submit. Also it might be good to note I had it without the email confirmation if statement and it worked fine (going to the submit page)

  • 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-15T15:17:46+00:00Added an answer on May 15, 2026 at 3:17 pm

    Javascript is Case Sensitive, GetElementByID != GetElementById and thus should be fixed.

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

Sidebar

Related Questions

Linux bash script: #!/bin/bash function Print() { echo $1 } var=* Print $var Execution
echo <script type=\text/javascript\>; echo function del_cookie(); echo {; echo document.cookie = logged_amount + '=;
I want to create tags using echo function but I'm stuck here; I dont
PHP echo function is not outputing strings in the format of html tag like
I have a PHP file with one simple echo function: echo 'アクセスは撥ねりません。'; but when
I am confused with following string function echo strlen(l\n2); //give 3 in output where
abspath() function abspath() { echo $_SERVER['DOCUMENT_ROOT']; } directory() function directory() { echo '/folder/'; }
function t1() { echo 1; } function t2() { echo 2; } $funcs =
Linux bash script: function Print() { echo $1 } Print OK This script runs
class t { public function tt() { echo 1; } } t::tt(); See?The non-static

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.