rendered paste body<?
$page = "articulos";
$id = ($_GET['id']);
$articulos = new Articulo();
$post_title = ($_POST['post_title']);
$post_date = ($_POST['post_date']);
$post_author = ($_POST['post_author']);
$post_content = ($_POST['post_content']);
// Switch between actions to get the desired one from URL Parameter
if (($_POST['submitted']) && (!$_GET['id'])) {
$articulos -> title = $post_title;
$articulos -> date_added = $post_date;
$articulos -> autor = $post_author;
$articulos -> body = $post_content;
} elseif ((!$_POST['submitted']) && ($_GET['id'])) {
$articulos -> Get($id);
} elseif (($_POST['submitted']) && ($_GET['id']))
{
$articulos -> Get($id);
$articulos -> title = $post_title;
$articulos -> date_added = $post_date;
$articulos -> autor = $post_author;
$articulos -> body = $post_content;
}
else
{
}
?>