PHP Code:
<?php
include 'session.inc.php';
include 'config.inc.php';
include 'db.inc.php';
$link = db_connect();
$date = $_POST['date'];
$venue = $_POST['venue'];
$location = $_POST['location'];
$information = $_POST['information'];
$query = "INSERT INTO showdates VALUES ('$date','$venue','$location','$information')";
db_query($query, $link);
db_close(null, $link);
$link = db_connect();
db_close($result, $link);
?>
And the form action:
PHP Code:
<form action="<?=$_SERVER['PHP_SELF']?>
Sorry about the title I can't change it.
Bookmarks