I have a news script that displays,adds,updates and deletes articles. I have a function that adds the articles to the database it starts like this:
function addnews()
{
global $LANG01, $db;
$news = new Page("layout/basic/addnews.thtml");
$monthp = $_POST['theMonth'];
$day = $_POST['theDay'];
$year = $_POST['theYear'];
$hours = $_POST['theHour'];
$min = $_POST['theMinutes'];
$ampm = $_POST['ampm'];...
I have another function which updates the articles and I want to access all those variables so I don't have to retype them in the other function. What's the easiest way to do this? And is it possible to do so without using $GLOBALS?