thedigicraft / Atom.CMS

Atom.CMS
56 stars 52 forks source link

Part 35 - Form Does Not Submit #102

Open FFW2015 opened 9 years ago

FFW2015 commented 9 years ago

Hello,

Thanks for the great series. I am hoping someone can take a look at my Admin index.php code to see what I might have messed up. The form is on my admi page, but when I try to submit the Test data nothing happens.

Thanks!

<?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 { $message = '

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

'.$q.'

'; } } ?>

```
creptor commented 9 years ago

You need to check the INPUT NAMES with the ones you have in the query.php file, also you need to call that file in the setup.php in order for it ot work.

(all of the files inside the admin section of course)

rowdylll3 commented 8 years ago

how do i do that fam how do i check it? help please!