My code advice to upcoming coders

ensodevensodev Posts: 65
edited May 2019 in PHP
<?php
session_start();
$ur_brain_go_hot = "";
$practiceDayNight=false;
$new_to_php = $_GET['phpFutureGuru'];
if($new_to_php == true){
  global $practiceDayNight =true;
  global $ur_brain_go_hot = "Very hot but learning";
  $_SESSION['NEXT_COURSE'] = "OOP";
  $_SESSION['PRICE'] = "WISDOM";
  $msg_to_serious_coders =  "You are geting closer to being a Guru";
  header("Location: /moveToTheNextStage?msg=$msg_to_serious_coders");
  exit();
}else{
  global $practiceDayNight =false;
  global $ur_brain_go_hot = "Very hot am tired and discouraged";
  $_SESSION['NEXT_COURSE'] = "VARIABLE";
  $_SESSION['PRICE'] = "";
  $msg_to_lazy_coders =  "Waste of effort";
  header("Location: /startOverAgainOrGetOut.php?msg=$msg_to_lazy_coders");
  exit();
}
?>

Comments

Sign In or Register to comment.