<?php

require_once "inc/initialize.php";
include 'inc/admin_validate.php';
//include "inc/header.php";
$slo_id = $_POST['slo_id'];
$team_id = $_POST['team_id'];
$slo_text = $_POST['slo_text'];
$slo = new SLO();
$slo->slo_id = $slo_id;
$slo->team_id = $team_id;
$slo->slo_text = $slo_text;
echo $change = $slo->update('slo_id', $slo->slo_id);
?>

<html>
  <head>
    <title>IU Webmaster redirect</title>
    <META http-equiv="refresh" content="0;URL=edit_slo.php?slo_id=<?php 
echo $slo_id;
?>
">
  </head>
  <body bgcolor="#ffffff">

  </body>
</html>
Example #2
0
<?php

require_once "inc/initialize.php";
include 'inc/admin_validate.php';
include "inc/header.php";
$slo_text = $_POST['slo_text'];
$team_id = $_POST['team_id'];
$slo = new SLO();
$slo->slo_text = $slo_text;
$slo->team_id = $team_id;
echo $count = $slo->create('slo_id');
?>
  	<html>
  <head>
    <title>IU Webmaster redirect</title>
    <META http-equiv="refresh" content="0;URL=list_slo.php?team_id=<?php 
echo $team_id;
?>
">
  </head>
  <body bgcolor="#ffffff">

  </body>
</html>