Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][PHP]Formularz na stronie mobilnej.
kamilos809
post
Post #1





Grupa: Zarejestrowani
Postów: 165
Pomógł: 3
Dołączył: 2.04.2010

Ostrzeżenie: (10%)
X----


Hejka,
Zająłem się projektem strony mobilnej, wszystko pięknie działa tylko chcę dodać do niej oprócz widoku treści, dodawanie własnej treści(np. komentarzy)
Jak na złość wszystko pięknie, formularz jest, ale gdy klikam na wyślij nic się nie dzieje na tablecie/telefonie/komputerze.
Miałby ktoś pomysł jak to naprawić?

  1. <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//PL" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
  2. <meta content="text/html; charset=ISO-8859-2"
  3. http-equiv="content-type">
  4. <title>Strona Mobile</title>
  5. <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.css" />
  6. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
  7. <script src="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js"></script>
  8. </head>
  9. <?
  10. $db_host = 'localhost';
  11. $db_user = 'root';
  12. $db_pass = '';
  13. $db_name = 'uu';
  14. if( !@mysql_connect($db_host, $db_user, $db_pass) )
  15. displayError( 'błąd połączenia z MySQL', mysql_errno(), mysql_error() );
  16.  
  17. if( !@mysql_select_db($db_name) )
  18. displayError( 'błąd wybierania bazy danych', mysql_errno(), mysql_error() );
  19. include('testing.js');
  20. $stopka = "Kopalnia Modów 2013";
  21. $powrot= "testing.php";
  22. ?>
  23. <div data-role="page" id="strona1">
  24. <header data-role="header" class="ui-bar-a ui-header">
  25. <center><img src="logo1.png"></center>
  26. </header>
  27. <a class="ui-btn-left ui-btn ui-btn-icon-left ui-btn-corner-all ui-shadow ui-btn-up-a" data-icon="back" data-rel="back" href="#" data-theme="a">
  28. <span class="ui-btn-inner ui-btn-corner-all">
  29. <span class="ui-btn-text">
  30. Powrót
  31. </span>
  32. <span class="ui-icon ui-icon-arrow-l ui-icon-shadow"></span>
  33. </span></a>
  34.  
  35. <div data-role="content">
  36. <ul class="ui-listview" data-role="listview" role="listbox">
  37. <li class="ui-li-has-thumb ui-btn ui-btn-icon-right ui-li ui-btn-up-c" role="option" data-theme="a">
  38.  
  39. <form action="wyslij.php" method="get">
  40. Podaj imię: <input type="text" name="imie" /><br />
  41. Podaj wiek: <input type="text" name="wiek" /><br />
  42. <input type="submit" value="Wyślij" />
  43. </form>
  44. </div>
  45.  
  46. <footer data-role="footer">
  47. <h4><?echo $stopka;?></h4>
  48. </footer>
  49. </div>
  50. </body>
  51. </html>
Go to the top of the page
+Quote Post

Posty w temacie


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: 4.10.2025 - 09:34