Forum Moderators: coopster
here is the code:
<?php
IF(ISSET($_POST['submit'])){
$NAME = $_POST ['name'];
$EMAIL = $_POST ['email'];
$SUBJECT = $_POST ['_subject'];
$MESSAGE = $_POST ['message'];
include 'config.php';
include 'opendb.php';
$result = mysql_query($query);
ELSE {
ECHO $Name;
ECHO $EMAIL;
ECHO $SUBJECT;
ECHO $MESSAGE;
}
mysql_connect($dbhost, $dbuser, $dbpass)
or die('cannot select database');
?>
<html>
<head>
<title>Personal Information</title>
</head>
<body>
<table width="650" border="0" align="center" cellspacing="0">
<tr>
<form method="post" name="msgform">
<table width="500" border="0" align="center" cellpadding="2" cellspacing="1">
<tr>
<td width="106">Your Name</td>
<td width="381"><input name="name" type="text" class="box" id="name" size="30" value=""></td>
</tr>
<tr>
<td>Your Email</td>
<td><input name="email" type="text" id="mail" size="30" value=""></td>
</tr>
<tr>
<td>Subject</td>
<td><input name="subject" type="text" id="subject" size="30" value=""></td>
</tr>
<tr>
<td>Message</td>
<td><textarea name="message" cols="55" id="message"></textarea></td>
</tr>
<tr align="center">
<td colspan="2"><input name="send" type="submit" id="send" value="Send Message" onClick="return checkForm();"></td>
</tr>
<tr align="center">
<td colspan="2"> </td>
</tr>
</form>
</table>
</body>
</html>
?>
thanx