<?php

if (isset($_POST['submit'])) {
    require 'include/config.php';
    require 'include/class.mailing.php';
    $n = new Mailing($db);
    $n->Insert($_POST);
    Misc::Redirect('mailing_list.php');
}
include 'include/top.php';
?>

<form method="post">
	<p>
		<label><span>Title</span></label>
		<input type="text" name="title" id="title" placeholder="Enter mailing list title" />
	</p>
<!--	<p>
		<label><span>List ID</span></label>
		<input type="text" name="list_id" id="list_id" placeholder="Enter mailing list id" />
	</p>
	<p>
		<label><span>URL</span></label>
		<input type="text" name="url" id="url" placeholder="Enter list url" />
	</p>-->
<!--
	<p>
		<label><span>Autoresponder</span></label>
		<select name="type">
			<option value="getresponse">GetResponse</option>
			<option value="infusionsoft">InfusionSoft</option>