Advertisement
Guest User

paster

a guest
May 21st, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.95 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" >POSAO</font></TD>
  16. <form action="prijava.php" method="GET">
  17. <td height="2%" bgcolor="ffffff" width="2%"></td>
  18. <td height="2%" bgcolor="F00000 " width="25%" ><font color="0033CC"><b>PRONAĐITE POSAO</b></font></td>
  19. <td height="2%" bgcolor="F00000 " width="25%" ><font color="0033CC"><b><input type="IMAGE" name="prijava" src="slika.png"></b></font></td>
  20. <td height="2%" bgcolor="F00000 " width="25%" ><font color="0033CC"><b>POMOĆ</b></font></td>
  21. <td height="2%" bgcolor="F00000 " width="25%" ><font color="0033CC"><b>KONTAKT</b></font></td>
  22. </form>
  23. </tr>
  24.  
  25.  
  26. <tr>
  27. <td height="1%" bgcolor="ffffff"></td>
  28. <td height="1%" bgcolor="ffffff" width="2%"></td>
  29. <td height="1%" bgcolor="ffffff" colspan="4"></td>
  30.  
  31. </tr>
  32. <tr>
  33. <td height="2%" bgcolor="A80000"></td>
  34. <td height="2%" bgcolor="ffffff" width="2%"></td>
  35. <td height="2%" bgcolor="A80000" width="25%"colspan="4"></td>
  36.  
  37.  
  38. </tr>
  39. <tr >
  40.  
  41. <td bgcolor="C8C8C8 " width="15%" valign="top" border="1">Pronađite brzo i lako posao bez puno ulozenog truda</td>
  42. <td height="3%" bgcolor="ffffff" width="3%"></td>
  43. <td colspan="3" rowspan="3" valign="top" bgcolor="99CCCC" style="border:2px solid" width="12%">
  44. <FORM ACTION="" METHOD="POST" >
  45. <TABLE BORDER="0" ALIGN="center">
  46. <TR><TD>Ime: </TD> <TD><INPUT TYPE="text" NAME="ime" SIZE="40" MAXLENGTH="80"></TD></TR>
  47. <TR><TD>Prezime:</TD> <TD><INPUT TYPE="text" NAME="prezime" SIZE="40" MAXLENGTH="80"></TD></TR>
  48. <TR><TD>Adresa:</TD> <TD><INPUT TYPE="text" NAME="adresa" SIZE="40" MAXLENGTH="80" ></TD></TR>
  49. <TR><TD>OIB:</TD> <TD><INPUT TYPE="text" NAME="oib" SIZE="40" MAXLENGTH="80"></TD></TR>
  50. <TR><TD>Županija:</TD> <TD><INPUT TYPE="text" NAME="zupanija" SIZE="40" MAXLENGTH="80"></TD></TR>
  51. <TR><TD></TD> <TD><INPUT TYPE="submit" NAME="prijava" value="PRIJAVI SE" SIZE="40" MAXLENGTH="80"></TD></TR>
  52.  
  53. <!-- <TR><TD COLSPAN="2" ALIGN="center"><INPUT TYPE="image" NAME="Submit" SRC="pics/submit.gif" WIDTH="70" HEIGHT="20" BORDER="0">
  54. <A HREF="feedback.html"><IMG SRC="pics/reset.gif" WIDTH="70" HEIGHT="20" ALT="Reset" BORDER="0"></A></TD></TR> -->
  55. </TABLE>
  56.  
  57. </form>
  58.  
  59. </td>
  60. <td bgcolor="B8B8B8 " width="25%"></td>
  61.  
  62. </tr>
  63. <tr>
  64. <td bgcolor="C8C8C8 " ></td>
  65. <td height="3%" bgcolor="ffffff" width="1%"></td>
  66. <td colspan="2" bgcolor="B8B8B8 " width="25%"></td>
  67.  
  68.  
  69. </tr>
  70. <tr>
  71. <td bgcolor="C8C8C8 " valign="bottom"><a href="http://time.is/Zagreb" id="time_is_link" rel="nofollow" style="font-size:25px">Sat: </a><span id="Zagreb_z734" style="font-size:25px"></span>
  72. <script src="http://widget.time.is/t.js"></script>
  73. <script>
  74. time_is_widget.init({Zagreb_z734:{}});
  75. </script></td>
  76. <td height="3%" bgcolor="ffffff" width="3%"></td>
  77. <td colspan="2" bgcolor="B8B8B8 " width="25%"></td>
  78.  
  79.  
  80. </tr>
  81. </table>
  82.  
  83.  
  84.  
  85.  
  86. <?php
  87.  
  88. $ime=$_POST["ime"];
  89. $prezime=$_POST["prezime"];
  90. $adresa=$_POST["adresa"];
  91. $oib=$_POST["oib"];
  92. $zupanija=$_POST["zupanija"];
  93. if(isset($_POST["prijava"]{
  94. echo'Uspjesno ste se prijavili';
  95. }
  96. else
  97. {
  98. echo'Prijava nije prošla uspješno';
  99. }
  100.  
  101. $servername="localhost";
  102. $username="baglama";
  103. $password="baglama";
  104. $mysql_database="posao";
  105. $link=mysql_connect($servername,$username,$password);
  106. if(!$link){
  107. die("Connection failed: ".mysql_error());
  108. }
  109. else
  110. {echo'Connected succesfully!';}
  111. mysql_select_db("posao");
  112. $sql="INSERT INTO osobnipodaci(Ime,Prezime,Adresa,OIB,Županija)
  113. VALUES('$_POST[ime]','$_POST[prezime]','$_POST[adresa]','$_POST[oib]','$_POST[zupanija]')";
  114.  
  115.  
  116.  
  117. ?>
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139. </body>
  140. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement