thedigicraft / Atom.CMS

Atom.CMS
56 stars 52 forks source link

video 35: when i try to insert a page the new page add becomes blank and i get a error Notice: Undefined index: title in D:\xampp\htdocs\BOBBYC\Project\admin\index.php on line 43 Notice: Undefined index: header in D:\xampp\htdocs\BOBBYC\Project\admin\index.php on line 43 Notice: Undefined index: body in D:\xampp\htdocs\BOBBYC\Project\admin\index.php on line 43 Page was added! #189

Open bobbyxx opened 7 years ago

bobbyxx commented 7 years ago

<?php

start the session

session_start();

if (!isset($_SESSION['username'])) { header('Location: login.php'); }

?>

<?php include('config/setup.php');?>

<!DOCTYPE html>

<?php echo $page['title'].' | '.$site_title;?> ```

Admin Dashboard

Page was added!

'; } else { echo '

Page could not be added because: '.mysqli_error($dbc); echo '

'.$q.'

'; } } ?>

creptor commented 7 years ago

Please use http://pastebin.com/ , so I can easily read your code and fix it 😃