Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][HTML]Warning: Division by zero in
black_alexis
post
Post #1





Grupa: Zarejestrowani
Postów: 41
Pomógł: 3
Dołączył: 2.01.2009
Skąd: Kraków

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


Witajcie.

Mam problem z zainkludowaniem zmiennej $form do HTML'a. Czy mogłby mi ktoś pomóc, wyskakuje mi taki błąd:


Warning: Division by zero in /temp/agnos/index.php on line 6


Kod
<?php
     $form = '<div class="sidebar_right">
                 <img src="images/skontaktuj_sie_z_nami.png" class="kontakt" alt="" title="" />
                 <p class="normal_text">Jeśli chcesz się z Nami szybko skontaktować, skorzystaj z formularza!</p>
                 <form action="" method="post">
                     <input type="text" name="name_surname" class="name"  value="Wpisz swój adres e-mail" onfocus="if(this.value==this.defaultValue)this.value=''" onblur="if(this.value=='')this.value=this.defaultValue" />
                     <textarea class="contact" rows="12" cols="10"></textarea>
                     <input type="image" src="images/send_button.png" class="submit" />
                 </form>

             </div>';
      $form_2 = '<div class="sidebar_right">
                 <img src="images/skontaktuj_sie_z_nami.png" class="kontakt" alt="" title="" />
                 <p class="normal_text">Jeśli chcesz się z Nami szybko skontaktować, skorzystaj z formularza!</p>
                 <form action="" method="post">
                     <input type="text" name="name_surname" class="name"  value="Wpisz swój adres e-mail" onfocus="if(this.value==this.defaultValue)this.value=''" onblur="if(this.value=='')this.value=this.defaultValue" />
                     <input type="text" name="phone" class="name"  value="Podaj swoj numer" onfocus="if(this.value==this.defaultValue)this.value=''" onblur="if(this.value=='')this.value=this.defaultValue" />
                     <textarea class="contact" rows="12" cols="10"></textarea>
                     <input type="image" src="images/send_button.png" class="submit" />
                 </form>

             </div>';
?>

Powyższe definicje są przed <html> ...

wywołanie zmiennej:
Kod
<?php
                 $form_2;
             ?>


problemy:
1. wyskakuje powyższy błąd.
2. nie wyświetla mi się ten div.
3. nie mam pojęcia jak to rozwiązać.

Bardzo proszę o pomoc.

pozdrawiam


--------------------
http://design-solution.pl/

Jeżeli zdarzy się taka sytuacja, ze Ci pomogę, zaklikaj że to zrobiłam :)
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 20.08.2025 - 14:16