if (trim($link_one)!="")
$db->query( "INSERT INTO " . PREFIX . "_post_links (matchid, link) VALUES('{$row}', '{$link_one}')" );
if (trim($link_two)!="")
$db->query( "INSERT INTO " . PREFIX . "_post_links (matchid, link) VALUES('{$row}', '{$link_two}')" );
if (trim($link_three)!="")
$db->query( "INSERT INTO " . PREFIX . "_post_links (matchid, link) VALUES('{$row}', '{$link_three}')" );
if (trim($link_four)!="")
$db->query( "INSERT INTO " . PREFIX . "_post_links (matchid, link) VALUES('{$row}', '{$link_four}')" );
urtrivedi
Nearly a Posting Virtuoso
1,306 posts since Dec 2008
Reputation Points: 257
Solved Threads: 270
you must use html element array
<input type="text" class="edit bk" name="links[]" id="links[]" style="width:350px">
Here is used [] IN NAMING html
now in php you will get array of links and u can use it as follows
$totaltextbox=count($_POST[links])
for ($i=0;$i<$totaltextbox;$i++)
{
if(trim($_POST['links'][$i])=="")
echo $_POST['links'][$i]."" ;
}
urtrivedi
Nearly a Posting Virtuoso
1,306 posts since Dec 2008
Reputation Points: 257
Solved Threads: 270