<?php
include_once("functions/database.php");
$name = $_POST["userName"];
$password = md5(md5($_POST["password"]));
$sql="insert into newsusers values(null,'$name','$password')";
get_connection();
mysql_query($sql);
close_connection();
header("Location:index.php?url=news_list.php");
?>