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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:05:51+00:00 2026-06-12T10:05:51+00:00

I do not want this piece of code running when the page actions to

  • 0

I do not want this piece of code running when the page actions to itself.

    //There was an identical id and request is somewhat real. (Still possible of a lucky guess)
    if($array['isbeingwritten'] == 1)
    {
        //The article is already being written.
        echo '<script type="text/javascript">alert("That article is being written. Someone beat you to it. You will now be redirected.");</script>';
        echo '<script type="text/javascript">window.location.href="write.php";</script>';
    }

So I’ve done this:

if(!isset($_POST['submit']))
{
  //There was an identical id and request is somewhat real. (Still possible of a lucky guess)
  if($array['isbeingwritten'] == 1)
  {
        //The article is already being written.
    echo '<script type="text/javascript">alert("That article is being written. Someone beat you to it. You will now be redirected.");</script>';
    echo '<script type="text/javascript">window.location.href="write.php";</script>';
  }
}

That doesn’t work. It still runs that code after pressing submit!! Here is my form:

            <form method="post" id="writearticle" action=""> 
                <textarea rows="30" cols="85" id="articlecontent" name="content" placeholder="Write the article here. Try to abide by the instructions and keywords provided." onkeyup="checkWordCount();" ></textarea>
                <br />      
                <input type="submit" id="submit" name="submitarticle" value="Submit Article" class="submit" disabled />     

                <br /><br /><br /><br /><br />
            </form>
  • 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-12T10:05:54+00:00Added an answer on June 12, 2026 at 10:05 am

    change the code if(!isset($_POST['submit']))
    to
    if(!isset($_POST['submitarticle']))

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

Sidebar

Related Questions

I basically want to do this in code: PersonList myPersonList; //populate myPersonList here, not
I've got this image: I want to code this image (just the bar, not
Currently learning Scheme/Racket and have problem running this piece of code. (if (or (<
I have a class method where I want to perform this piece of code
First, I know about Clog , and I do not want to implement this
I want this text all on one line, not spaced on two sepearate lines.
I only want this function to run if .toolbar li does not have the
I want this to be on top... how can I do this and not
This bad boy just does not want to change size to fill the dock
I'm not sure how to target the element I want in this case: var

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.