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 🙂
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