Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [CSS][HTML][PHP] Problem z Uplodaem
Sign
post
Post #1





Grupa: Zarejestrowani
Postów: 128
Pomógł: 0
Dołączył: 3.11.2014

Ostrzeżenie: (0%)
-----


Mam taki problem, że zrobilem tło tego
Inputa "Wyslij" i "Wybierz PLik"
Tak jak tutaj
http://signweb.xaa.pl/test/upload.php
I po dodaniu pliku wyswietla sie link, ale ten box to wszystko zaslania. Co zrobic, zeby ten box zniknal ? w tamtym miejscu ?
dzieki
PS Chce ten box ktory zaslania zrobic w nowej klasie i to szerszy.

Dzieki (IMG:style_emoticons/default/smile.gif)

hElp
Go to the top of the page
+Quote Post
trueblue
post
Post #2





Grupa: Zarejestrowani
Postów: 6 806
Pomógł: 1828
Dołączył: 11.03.2014

Ostrzeżenie: (0%)
-----


Na początek sprawdź gdzie nie zamknąłeś znaczników.
Potem wywal <center> i zastosuj stylowanie css.
Go to the top of the page
+Quote Post
Sign
post
Post #3





Grupa: Zarejestrowani
Postów: 128
Pomógł: 0
Dołączył: 3.11.2014

Ostrzeżenie: (0%)
-----


  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <title> Hosting Plików </title>
  6. <link rel="stylesheet" href="style.css">
  7. </head>
  8. <body>
  9.  
  10. <script language="JavaScript">
  11. extArray = new Array(".gif", ".jpg", ".png", ".bmp");
  12. function LimitAttach(form, file) {
  13. allowSubmit = false;
  14. if (!file) return;
  15. while (file.indexOf("\\") != -1)
  16. file = file.slice(file.indexOf("\\") + 1);
  17. ext = file.slice(file.indexOf(".")).toLowerCase();
  18. for (var i = 0; i < extArray.length; i++) {
  19. if (extArray[i] == ext) { allowSubmit = true; break; }
  20. }
  21. if (allowSubmit) form.submit();
  22. else
  23. alert("Please only upload files that end in types: "
  24. + (extArray.join(" ")) + "\nPlease select a new "
  25. + "file to upload and submit again.");
  26. }
  27. </script>
  28.  
  29. <div id="menu">
  30. <a href="#" class="menu">Home</a>
  31. <a href="#" class="menu">Pomoc</a>
  32. <a href="#" class="menu">Kontakt</a>
  33. <a href="#" class="menu">Regulamin</a>
  34.  
  35. </div>
  36.  
  37. <div class="container">
  38.  
  39. <form method=post name=upform class="plik" enctype="multipart/form-data">
  40. <input type=file name=uploadfile>
  41. <input type="hidden" name="MAX_FILE_SIZE" value="5000000" />
  42. <p>
  43. <input value="Wyślij" type=button name="Submit" value="Submit" class="wyslij" onclick="LimitAttach(this.form, this.form.uploadfile.value)">
  44. </form>
  45. </div>
  46.  
  47. <?php
  48.  
  49. $plik_tmp = $_FILES['uploadfile']['tmp_name'];
  50. $plik_nazwa = $_FILES['uploadfile']['name'];
  51. $plik_rozmiar = $_FILES['uploadfile']['size'];
  52.  
  53. $www = "www.signweb.xaa.pl/test/upload/";
  54. if(is_uploaded_file($plik_tmp))
  55. {
  56. move_uploaded_file($plik_tmp, "upload/$plik_nazwa" );
  57. echo "<center> Plik został pomyślnie przesłany na serwer !" ;
  58. echo '<center><input size="100" type="text" value="http://'.$www.$plik_nazwa.'" onclick="this.select()"</br>';
  59. }
  60. ?>
  61.  
  62. </body>
  63. </html>


Chyba wszystkie pozamykalem, albo coś prxeoczylem.
Go to the top of the page
+Quote Post
nospor
post
Post #4





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




Nie dosc ze nie wywaliles CENTER jak proszono, to na dodatek zostawiles je otwarte, mimo ze rowniez proszono bys pozamykal :/
Go to the top of the page
+Quote Post
Sign
post
Post #5





Grupa: Zarejestrowani
Postów: 128
Pomógł: 0
Dołączył: 3.11.2014

Ostrzeżenie: (0%)
-----


Ok, zrobilem tak i dalej nic nowego (IMG:style_emoticons/default/biggrin.gif)
http://signweb.xaa.pl/test/upload.php
:C
Go to the top of the page
+Quote Post
trueblue
post
Post #6





Grupa: Zarejestrowani
Postów: 6 806
Pomógł: 1828
Dołączył: 11.03.2014

Ostrzeżenie: (0%)
-----


Nadal nie pozamykałeś znaczników.
Go to the top of the page
+Quote Post
Sign
post
Post #7





Grupa: Zarejestrowani
Postów: 128
Pomógł: 0
Dołączył: 3.11.2014

Ostrzeżenie: (0%)
-----


Moglbys pokazac gdzie ?
Sory, ale za bardzo nie wiem (IMG:style_emoticons/default/haha.gif)
Go to the top of the page
+Quote Post
Boshi
post
Post #8





Grupa: Zarejestrowani
Postów: 342
Pomógł: 15
Dołączył: 30.08.2011

Ostrzeżenie: (0%)
-----


  1. <p>
  2. <center>

Dalej nawet nie szukałem. Wywal to centre i zastosuj CSS.
Go to the top of the page
+Quote Post
trueblue
post
Post #9





Grupa: Zarejestrowani
Postów: 6 806
Pomógł: 1828
Dołączył: 11.03.2014

Ostrzeżenie: (0%)
-----


<p> oraz ostatni input text.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 25.08.2025 - 09:30