datasun
Member

سلامی ، امیدوارم حالتون و شون خوب باشه
اساتید گرامی من یک فرم دارم که به دیتابیس ارسال میشه و میره تو جدول link حالا مشکلم اینکه این فرم دو تا از مقادیر رو ارسال میکنه و یکشو نه مطمئن هم هستم نام input و فیلد db رو درست وارد میکنم اینم از کد مشکل چیه ؟
PHP:
<?php
if (!isset($_POST['submit'])) {
?>
<?php
include "../include/config.php";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
<form dir='rtl' action='' method='post'>
<div align='right'>
<table cellpadding='0' cellspacing='0' width='542' height='42'>
<tr>
<td width='113' height='23'><span lang='fa'>عنوان لینک : </span> </td>
<td width='429' height='23'>
<input type='text' name='title' size='20'></td>
</tr>
<tr>
<td width='113' height='23'><span lang='fa'>آدرس لینک : </span> </td>
<td width='429' height='23'>
<input type='text' name='url' size='20'></td>
</tr>
<tr>
<td width='113' height='23'><span lang='fa'>توضیح لینک :</span></td>
<td width='429' height='23'>
<input type='text' name='more' size='20'></td>
</tr>
<tr>
<td width='113' height='19'></td>
<td width='429' height='19'><input type='submit' value='ذخیره' name='submit'></td>
</tr>
</table>
</div>
</form>";
?>
<?php
} else {
$title = $_POST['title'];
$url = $_POST['url'];
$more = $_POST['more'];
$id = $_POST['id'];
include "../include/config.php";
mysql_query("INSERT INTO link (title,url,more ) VALUES ('$title','$url','$more' )");
?>
ممنون میشم مشکل رو بگید

