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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:55:12+00:00 2026-05-29T20:55:12+00:00

So lets say i have a block of php code and i have an

  • 0

So lets say i have a block of php code and i have an alert in one if statement saying “Only continue if blahh blahh” and they click no (or the cross) can you make it stop executing code so it doesnt happen?

Im basically doing this (facebook authentication):

      <?php
              } else {
      // If user does not have an account create new
            //  ----- popup would be here ---------
    session_start();
    $_SESSION['fb_id']= $fb_id;  

    if($gender == "male"){
        $gender = "1";
    } else {
        $gender = "0";
    }

    mysql_query("INSERT INTO users (full_name, gender, fb_id)
        VALUES ('$full_name','$gender','$fb_id')");
    ?>

I hope this makes sense 😉 thanks for reading 🙂

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

    You could use a confirm dialogue in javascript. Check out the w3c page on it at http://www.w3schools.com/jsref/met_win_confirm.asp

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

Sidebar

Related Questions

Lets say I have the following code: abstract class Animal case class Dog(name:String) extends
I have one table having 10 rows.Now on page load lets say first 7
Lets say we have 3 servers on a local area network: APP - php
Lets say that i have this block of text public function __construct() { parent::__construct();
I have a question concerning multiple similair forms on one page. Lets say you
Lets say I have a block of if statements that throw an exception if
Lets say I have a stored procedure which has a simple IF block. If
I have a web server which returns an XML file. Lets say http://www.foo.bar/foo.php?wantXML=1 How
Let's say i have this block of code, <div id=id1> This is some text
Let's say I have cleaner like this .cleaner:after { content: '.'; display: block; clear:

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.