hello! i got a form:
<form name="form2" method="POST" action="post.php">
<p>ba$lik:
<input type="text" name="baslik" size="90"></p>
<p>spot kisa: <textarea name="spot_kisa"></textarea></p>
<p>spot uzun: <textarea name="spot"></textarea> </p>
<p>kategori: <select name='kategori'>
<? while ($kat=mysql_fetch_array($kategori)) {
echo "
<option value=".$kat[isim].">".$kat[isim]."</option>";
} ?>
</select>
tiklanma:
<input type="text" name="tiklanma" value="0" size="20" /disabled"></p>
tarih: <input value="<?php echo date("M j, Y - g:i"); ?>" name="tarih" />
içerik:
<textarea name="icerik"></textarea>
<script type="text/javascript">
</script>
<input type="submit" />
</form>
and post.php values:
mysql_query("INSERT INTO yazilar (baslik, spot, spot_kisa, icerik, kategori, tiklanma, eklemetarihi)
VALUES
('$_POST[baslik]','$_POST[spot]','$_POST[spot_kisa]','$_POST[icerik]','$_POST[kategori]','$_POST[tiklanma]','$_POST[tarih]')");
i need to add 2 picture links to table with upload form and insert db with post.php. two thumbnails with different size.
thanks!!