Pokazuje cały czas komunikat "Wystąpił problem z wgraniem zdjęcia na serwer."
PHP:
if ($_POST['config']){ $plik_tmp = $_FILES['foto']['tmp_name']; $plik_nazwa = $_FILES['foto']['name']; $lacz = $kodowanie.$ext; $image = $_POST['image']; $url = $_POST['url']; if ($url == 1) { $onurl = 1; $urladres = $_POST['adresurl']; } else { $onurl = 0; $urladres = 'brak'; } if ($image == 1) { $obrazek = $_POST['adresimage']; } else if ($image == 2) { $obrazek = 'upload/pop.jpg'; } else { $blad++; } } else { $blad++; } $blad++; } $blad++; } if ($blad == 0){ if ($image == 2) { id='1'"); if ($wynik03){ } else { echo '<div class="error">Wystąpił problem z Bazą danych. Prosimy spróbować ponownie później. Jeżeli problem będzie się powtarzać to proszę to zgłosić firmie fine-design</div>'; } } else { } } } }
HTML:
<form action='' method='post'> <input type='hidden' name='config' value='TRUE'/> <table border="1" rules="none"> <tr> </tr> <tr> <td width="125"><input type='radio' name='image' value='1' onclick="document.getElementById('obrazek2').style.display='none'; document.getElementById('obrazek1').style.display = this.checked ? 'block' : 'none'; this.form.elements['nazwa2'].disabled = this.form.elements['nazwa3'].disabled = !this.checked" /> Adres url</td> <td width="125"><input type='radio' name='image' value='2' onclick="document.getElementById('obrazek1').style.display='none'; document.getElementById('obrazek2').style.display = this.checked ? 'block' : 'none'; this.form.elements['nazwa2'].disabled = this.form.elements['nazwa3'].disabled = !this.checked" /> Z dysku</td> </tr> <tr> <td colspan="2"> <div id='obrazek1' style='display: none'> </div> <div id='obrazek2' style='display: none'> </div> </td> </tr> <tr> </tr> <tr> </tr> <tr> <td colspan="2"> <div id='odnosnik' style='display: none'> </div> </td> </tr> <tr> </tr> </table> </form>