Hi I have two pieces of code set up
<form action="Index2.php" method="POST">
<p>Name:</p>
<input type="text" name="name">
<p>Last Name:</p>
<input type="text" name="lname">
<input type="submit" value="Submit">
</form>
and this PHP file named Index2.php
<?php
$connection = odbc_connect("Dashboard","","") or die ("Unable to Connect to the DB");
$name=$_POST['name'];
$last_name=$_POST['lname'];
$sql = "
INSERT INTO tableone (Name, Last_Name)
VALUES ('$name', '$last_name')
";
odbc_exec($connection, $sql);
?>
That I have tried in a separate file to make sure connects and pass the info to the database but when I run the form it does not pass the data to MS Access and shows me the PHP code on a blank page, am I missing some sort of escaping from PHP?