Hej alla!
Har ett litet problem. Nån som kan hitta nåt fel här:
<form action="insert_art.php" method="get">
Article number: <br>
<input type="Text" name="artno" value="<?=$antal?>"><BR>
Article Desciption:<BR>
<input type="Text" name="artdesc" value=""><BR>
Country Code: <BR>
<input type="Text" name="countrycode" value="<?=$CC?>"><BR>
<input type="Submit" value="Send">
</form>
insert_art.php:
<?
// Skapa en databaskoppling
$db = mysql_connect("", "", "");
mysql_select_db("intloctite",$db);
// Lägg in post.
$sql = "INSERT INTO articles (artno,artdesc,countrycode) VALUES ('artno','artdesc','countrycode')";
$resultat = mysql_query($sql);
echo "Uppgifterna är nu inlagda<br><br>";
echo "<a href='javascript:history.go(-1);'>Tillbaka</a>";
?>
------------------
Sofia