Here is my form:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form method="post" action="inputrts.php">
<table width='100%' cellspacing='0' dwcopytype="CopyTableRow">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td width='22%'> <div align="left"><strong><font color="#FF0000" face="Georgia, Times New Roman, Times, serif">Station
Name: </font></strong></div></td>
<td width='78%'><input name="station_name" type="text" id="station_name" size="30" maxlength="5">
</td>
</tr>
<tr>
<td><strong><font color="#FF0000" face="Georgia, Times New Roman, Times, serif">Location:</font></strong></td>
<td><input name="station_location" type="text" id="station_location" size="30" maxlength="30">
</td>
</tr>
<tr>
<td><strong><font color="#FF0000" face="Georgia, Times New Roman, Times, serif">Logger:</font></strong></td>
<td><input name="station_logger" type="text" id="station_logger" value="FWS12S" size="30" maxlength="6"></td>
</tr>
<tr>
<td><strong><font color="#FF0000" face="Georgia, Times New Roman, Times, serif">Phone:</font></strong></td>
<td><input name="station_phone" type="text" id="station_phone" size="30" maxlength="10">
</td>
</tr>
<tr>
<td><strong><font color="#FF0000" face='Georgia, Times New Roman, Times, serif'>Radio
Modem #:</font></strong></td>
<td><input name="station_rm" type="text" id="station_rm" size="30" maxlength="4"></td>
</tr>
<tr>
<td><strong><font color="#FF0000" face="Georgia, Times New Roman, Times, serif">Modem
Type:</font></strong></td>
<td><input name="station_modem" type="text" id="station_modem" size="30" maxlength="6"></td>
</tr>
<tr>
<td><strong><font color="#FF0000" face="Georgia, Times New Roman, Times, serif">Caller:</font></strong></td>
<td><input name="station_caller" type="text" id="station_caller" size="30" maxlength="30"></td>
</tr>
<tr>
<td><strong></strong></td>
<td> </td>
</tr>
<tr>
<td colspan="2"><div align="center"><strong></strong>
<input name="submit" type="submit" value="Submit station">
</div></td>
</tr>
</table>
</form>
and here is my form action php that should throw that data in the db
<?
$DBhost = "localhost";
$DBuser = "uuu";
$DBpass = "ppp";
$DBName = "ops_db";
$table = "RTS_Stations";
mysql_connect($DBhost,$DBuser,$DBpass) or die("Unable to connect to database");
@mysql_select_db("$DBName") or die("Unable to select database $DBName");
$sqlquery = "INSERT INTO RTS_Stations (station_name, station_location, station_logger, station_phone, station_rm, station_modem, station_caller)
VALUES ('$_POST[station_name]', '$_POST[station_location]', '$_POST[station_logger]', '$_POST[station_phone]', '$_POST[station_rm]', '$_POST[station_modem]', '$_POST[station_caller]')";
$results = mysql_query($sqlquery);
mysql_close();
header('location: [url]http://www.yahoo.com[/url]);}
?>
I fill in the data, press sumbit, and I get stranded at an empty inputrts.php page. no errors, no nothing. And nothing is added to the db. Did I make a mistake somewhere?
Note: that last line is actually header('location: address.com');} not what it says above