I have a small problem. Iv tried every combination of " , ' , \" and \' but still cant get this to work.. Any idea why this isnt takin the text from the textboxes and putting it into the sql query? All its doing is populating ym database with blanks... Nothing in it at all.. Just blank,. 🙁
<?php
$linkID = mysql_connect("localhost", "root", "") or die("nope..nope.. not workin!"); //Create the databse link, ("localhost", "username", "password")
$sql = "INSERT INTO email (frm, send, dt, subject) VALUES (\"$send\",\"$frm\",\"$dt\",\"$to\")"; //set up the query to insert the items in the text boxes into the database.
mysql_select_db("test", $linkID);
mysql_query("$sql", $linkID);
mysql_close($linkID);
echo "<form name='form1' method='post' action='$SCRIPT_NAME'>";
echo " <p><input type='text' name='$send'>";
echo "</p>";
echo " <p> ";
echo " <input type='text' name='$frm'>";
echo " </p>";
echo " <p> ";
echo " <input type='text' name='dt'>";
echo " </p>";
echo " <p> ";
echo " <input type='text' name='subject'>";
echo " </p>";
echo " <p>";
echo " <input type='submit' name='Submit' value='Submit'>";
echo " </p>";
echo "</form>";
?>
Thank you,
Nick