Kod
<?php
if($_POST['submit'])
{
if(!empty($_POST['title']) && !empty($_POST['dodal']) && !empty($_POST['adres']) && ($_POST['gatunek']!=none)){
mysql_query("insert into mp3(title, adres, dodal, gatunek, dnia, akt) value ('".$_POST['title']."','".$_POST['adres']."','".$_POST['dodal']."','".$_POST['gatunek']."','".date("d.m.Y")."','0')");
?><center><span style="font-size: small;"><strong>MP3 pojawi sie w bazie po akceptacji administratora</strong></span></center><?
}
else { ?><div style="color: red; text-align: center;">wypełnij wszystkie pola</div><?
}
}
?>
if($_POST['submit'])
{
if(!empty($_POST['title']) && !empty($_POST['dodal']) && !empty($_POST['adres']) && ($_POST['gatunek']!=none)){
mysql_query("insert into mp3(title, adres, dodal, gatunek, dnia, akt) value ('".$_POST['title']."','".$_POST['adres']."','".$_POST['dodal']."','".$_POST['gatunek']."','".date("d.m.Y")."','0')");
?><center><span style="font-size: small;"><strong>MP3 pojawi sie w bazie po akceptacji administratora</strong></span></center><?
}
else { ?><div style="color: red; text-align: center;">wypełnij wszystkie pola</div><?
}
}
?>
Chiał bym dodac aby formualrz prosił o podanie poprawnego linka zippyshare ale tylko tyle mam wczesniej przez cala noc kombinowalem walidacja url nie dzialalo....