A wydaje się napisany poprawnie.
<?php if($_POST['dodaj']) { if ($_POST['url'] != '') { $url = ('http://'.$_POST['url']); $q = $q['jest']; if (q == 1){ $q = $q['id']; echo('<h2>Nowy: <a href="http://potargame.pl/?id='.$q);" target="_blank">http://potargame.pl/?id='.$q);</a> } else { if($q) { $q = $q['id']; echo('nowy link to: <a href="http://potargame.pl/?id='.$q);" target="_blank">http://potargame.pl/?id='.$q);</a> } ?> <form action="" method="post"> <input type="text" name="url"> <input type="submit" name="dodaj" value="Skroc!"> </form>