Advertisement
Guest User

Untitled

a guest
May 16th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.40 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
  3.  
  4. <!-- #BeginTemplate "master.dwt" -->
  5.  
  6. <head>
  7. <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
  8. <!-- #BeginEditable "doctitle" -->
  9. <title>Transfer Funds</title>
  10. <script type="text/javascript" src="cookies.js"></script>
  11. <script type="text/javascript">
  12. var sitecookievalid = getSiteCookieValid();
  13. if (sitecookievalid)
  14. {
  15. getSiteData();
  16. }//end if
  17. else
  18. {
  19. document.location="./login.html";
  20. }//end else
  21.  
  22. </script>
  23.  
  24. <!-- #EndEditable -->
  25. <link href="styles/style1.css" media="screen" rel="stylesheet" title="CSS" type="text/css" />
  26. </head>
  27.  
  28. <body>
  29.  
  30. <!-- Begin Container -->
  31. <div id="container">
  32. <!-- Begin Masthead -->
  33. <div id="masthead">
  34. <h1>Hometown National Bank</h1>
  35. <h3>The Hometown Bank</h3>
  36. </div>
  37. <!-- End Masthead -->
  38. <!-- Begin Navigation -->
  39. <div id="navigation">
  40. <ul>
  41. <li><a href="default.html">Home</a></li>
  42. <li><a href="login.html">Login</a></li>
  43. <li><a href="view.php">View Account</a></li>
  44. <li><a href="transfer.php">Transfer Funds</a></li>
  45. </ul>
  46. </div>
  47. <!-- End Navigation -->
  48. <!-- Begin Page Content -->
  49. <div id="page_content">
  50. <!-- Begin Content -->
  51. <div id="content">
  52. <!-- #BeginEditable "content" -->
  53. <h2>Transfer Funds</h2>
  54. <p>Enter the account number you would like to transfer funds to below and the funds will automatically be withdrawn from the account you are logged into and deposited to the account you specify.</p>
  55. <form method="get" action="transfer_action.php">
  56. <table cellpadding="0" cellspacing="15">
  57. <tr>
  58. <td>Transfer To: </td>
  59. <td><input type="text" maxlength="10" name="TransferTarget" /></td>
  60. </tr>
  61. <tr>
  62. <td>Amount: </td>
  63. <td><input type="text" maxlength="13" name="TransferAmount" /></td>
  64. </tr>
  65. </table>
  66. <?php
  67. $host = “localhost”;
  68. $user = “root”;
  69. $password = “”;
  70. $dbname = “hometown_bank”;
  71. $connection = mysql_connect( $host, $user, $password );
  72. $database = mysql_select_db( $dbname, $connection );
  73. $query = “SELECT * FROM image_data i”;
  74. echo '<br /> <br />';
  75. $result = mysql_query( $query, $connection );
  76. srand(time());
  77. $random = (rand()%10);
  78. $url = mysql_result($result, $random, “URL”);
  79. echo ‘<br />Name the item in the picture beloë and click Submit to complete your transfer.’;
  80. echo ‘<br /><br />’;
  81. echo '<img src="./images/';
  82. echo $url;
  83. echo '" height="100" width="100" />';
  84. echo ‘<input type=”hidden” name=”ObjectURL” value=”’;
  85. echo $url;
  86. echo ‘” />’;
  87. echo ‘<br /><br />Name of the Item: ‘;
  88. echo ‘<input type=”text” name=”ObjectDescription” maxlength=”25” />’;
  89. echo ‘<br /><br />’
  90. ?>
  91.  
  92. <input type="submit" value="Submit" />
  93. </form>
  94. <!-- #EndEditable -->
  95. </div>
  96. </div><!-- End Content -->
  97. <!-- End Page Content -->
  98. <!-- Begin Footer -->
  99. <div id="footer">
  100. <p><a href="default.html">Home</a> | <a href="login.html">Login</a>
  101. | <a href="view.php">View Account</a> | <a href="transfer.php">
  102. Transfer Funds</a></p>
  103. </div>
  104. <!-- End Footer --></div>
  105. <!-- End Container -->
  106.  
  107. </body>
  108.  
  109. <!-- #EndTemplate -->
  110.  
  111. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement