Advertisement
Guest User

gg

a guest
May 21st, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.84 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Nadi posao!</title>
  4. </head>
  5. <body bgcolor="E0E0E0 ">
  6.  
  7. <table style="border-collapse: collapse;" cellspacing="0" width="100%" height="100%">
  8. <tr>
  9. <td colspan="1" height="1%" bgcolor="C0C0C0 "></td>
  10. <td height="1%" bgcolor="ffffff" width="2%"></td>
  11. <td colspan="4" height="1%" bgcolor="C0C0C0 "></td>
  12.  
  13. </tr>
  14.  
  15. <td colspan="1" height="3%" bgcolor="F00000 " valign="middle" align="right"><font color="white" size="5"
  16.  
  17. >POSAO</font></TD>
  18. <form action="prijava.php" method="GET">
  19. <td height="2%" bgcolor="ffffff" width="2%"></td>
  20. <td height="2%" bgcolor="F00000 " width="25%" ><font color="0033CC"><b>PRONAĐITE POSAO</b></font></td>
  21. <td height="2%" bgcolor="F00000 " width="25%" ><font color="0033CC"><b><input type="IMAGE" name="prijava"
  22.  
  23. src="slika.png"></b></font></td>
  24. <td height="2%" bgcolor="F00000 " width="25%" ><font color="0033CC"><b>POMOĆ</b></font></td>
  25. <td height="2%" bgcolor="F00000 " width="25%" ><font color="0033CC"><b>KONTAKT</b></font></td>
  26. </form>
  27. </tr>
  28.  
  29.  
  30. <tr>
  31. <td height="1%" bgcolor="ffffff"></td>
  32. <td height="1%" bgcolor="ffffff" width="2%"></td>
  33. <td height="1%" bgcolor="ffffff" colspan="4"></td>
  34.  
  35. </tr>
  36. <tr>
  37. <td height="2%" bgcolor="A80000"></td>
  38. <td height="2%" bgcolor="ffffff" width="2%"></td>
  39. <td height="2%" bgcolor="A80000" width="25%"colspan="4"></td>
  40.  
  41.  
  42. </tr>
  43. <tr >
  44.  
  45. <td bgcolor="C8C8C8 " width="15%" valign="top" border="1">Pronađite brzo i lako posao bez puno ulozenog truda</td>
  46. <td height="3%" bgcolor="ffffff" width="3%"></td>
  47. <td colspan="3" rowspan="3" valign="top" bgcolor="99CCCC" style="border:2px solid" width="12%">
  48. <FORM ACTION="" METHOD="GET" name="forma">
  49. <TABLE BORDER="0" ALIGN="center">
  50. <TR><TD>Ime: </TD> <TD><INPUT TYPE="text" name="ime" SIZE="40" MAXLENGTH="80"></TD></TR>
  51. <TR><TD>Prezime:</TD> <TD><INPUT TYPE="text" name="prezime" SIZE="40" MAXLENGTH="80"></TD></TR>
  52. <TR><TD>Adresa:</TD> <TD><INPUT TYPE="text" name="adresa" SIZE="40" MAXLENGTH="80" ></TD></TR>
  53. <TR><TD>OIB:</TD> <TD><INPUT TYPE="text" name="oib" SIZE="40" MAXLENGTH="80"></TD></TR>
  54. <TR><TD>Županija:</TD> <TD><INPUT TYPE="text" name="zupanija" SIZE="40" MAXLENGTH="80"></TD></TR>
  55. <TR><TD></TD> <TD><INPUT TYPE="submit" name="prijava" value="PRIJAVI SE" SIZE="40" MAXLENGTH="80"></TD></TR>
  56.  
  57.  
  58. </TABLE>
  59.  
  60. </form>
  61.  
  62. </td>
  63. <td bgcolor="B8B8B8 " width="25%"></td>
  64.  
  65. </tr>
  66. <tr>
  67. <td bgcolor="C8C8C8 " ></td>
  68. <td height="3%" bgcolor="ffffff" width="1%"></td>
  69. <td colspan="2" bgcolor="B8B8B8 " width="25%"></td>
  70.  
  71.  
  72. </tr>
  73. <tr>
  74. <td bgcolor="C8C8C8 " valign="bottom"><a href="http://time.is/Zagreb" id="time_is_link" rel="nofollow"
  75.  
  76. style="font-size:25px">Sat: </a><span id="Zagreb_z734" style="font-size:25px"></span>
  77. <script src="http://widget.time.is/t.js"></script>
  78. <script>
  79. time_is_widget.init({Zagreb_z734:{}});
  80. </script></td>
  81. <td height="3%" bgcolor="ffffff" width="3%"></td>
  82. <td colspan="2" bgcolor="B8B8B8 " width="25%"></td>
  83.  
  84.  
  85. </tr>
  86. </table>
  87.  
  88. <?php
  89. $ime = (isset($_GET['ime']) ? $_GET['ime'] : null);
  90. $prezime = (isset($_GET['prezime']) ? $_GET['prezime'] : null);
  91. $adresa = (isset($_GET['adresa']) ? $_GET['adresa'] : null);
  92. $oib = (isset($_GET['oib']) ? $_GET['oib'] : null);
  93. $zupanija = (isset($_GET['zupanija']) ? $_GET['zupanija'] : null);
  94. if(isset($_GET["prijava"])){
  95. }
  96.  
  97. $servername="localhost";
  98. $username="baglama";
  99. $password="baglama2";
  100. $mysql_database="posao";
  101. $link=mysqli_connect($servername,$username,$password);
  102.  
  103. if(!$link)
  104. {
  105. die("Connection failed: ".mysql_error());
  106. }
  107. else
  108. {
  109. echo"Connected succesfully!";
  110. }
  111.  
  112. mysqli_select_db($link,'posao');
  113. $sql="INSERT INTO osobnipodaci(ime,prezime,adresa,oib,zupanija)
  114. VALUES('$_GET['ime']','$_GET['prezime']','$_GET['adresa']','$_GET['oib']','$_GET['zupanija']')";
  115.  
  116. if(mysqli_query($link,$sql))
  117. {
  118. echo "Uspjesno pohranjeno".mysql_error();
  119. }
  120. else
  121. {
  122. echo "nije uspjesno".mysql_error();
  123. }
  124.  
  125. ?>
  126. </body>
  127. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement