Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
- <!-- #BeginTemplate "master.dwt" -->
- <head>
- <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
- <!-- #BeginEditable "doctitle" -->
- <title>Transfer Funds</title>
- <script type="text/javascript" src="cookies.js"></script>
- <script type="text/javascript">
- var sitecookievalid = getSiteCookieValid();
- if (sitecookievalid)
- {
- getSiteData();
- }//end if
- else
- {
- document.location="./login.html";
- }//end else
- </script>
- <!-- #EndEditable -->
- <link href="styles/style1.css" media="screen" rel="stylesheet" title="CSS" type="text/css" />
- </head>
- <body>
- <!-- Begin Container -->
- <div id="container">
- <!-- Begin Masthead -->
- <div id="masthead">
- <h1>Hometown National Bank</h1>
- <h3>The Hometown Bank</h3>
- </div>
- <!-- End Masthead -->
- <!-- Begin Navigation -->
- <div id="navigation">
- <ul>
- <li><a href="default.html">Home</a></li>
- <li><a href="login.html">Login</a></li>
- <li><a href="view.php">View Account</a></li>
- <li><a href="transfer.php">Transfer Funds</a></li>
- </ul>
- </div>
- <!-- End Navigation -->
- <!-- Begin Page Content -->
- <div id="page_content">
- <!-- Begin Content -->
- <div id="content">
- <!-- #BeginEditable "content" -->
- <h2>Transfer Funds</h2>
- <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>
- <form method="get" action="transfer_action.php">
- <table cellpadding="0" cellspacing="15">
- <tr>
- <td>Transfer To: </td>
- <td><input type="text" maxlength="10" name="TransferTarget" /></td>
- </tr>
- <tr>
- <td>Amount: </td>
- <td><input type="text" maxlength="13" name="TransferAmount" /></td>
- </tr>
- </table>
- <?php
- $host = “localhost”;
- $user = “root”;
- $password = “”;
- $dbname = “hometown_bank”;
- $connection = mysql_connect( $host, $user, $password );
- $database = mysql_select_db( $dbname, $connection );
- $query = “SELECT * FROM image_data i”;
- echo '<br /> <br />';
- $result = mysql_query( $query, $connection );
- srand(time());
- $random = (rand()%10);
- $url = mysql_result($result, $random, “URL”);
- echo ‘<br />Name the item in the picture beloë and click Submit to complete your transfer.’;
- echo ‘<br /><br />’;
- echo '<img src="./images/';
- echo $url;
- echo '" height="100" width="100" />';
- echo ‘<input type=”hidden” name=”ObjectURL” value=”’;
- echo $url;
- echo ‘” />’;
- echo ‘<br /><br />Name of the Item: ‘;
- echo ‘<input type=”text” name=”ObjectDescription” maxlength=”25” />’;
- echo ‘<br /><br />’
- ?>
- <input type="submit" value="Submit" />
- </form>
- <!-- #EndEditable -->
- </div>
- </div><!-- End Content -->
- <!-- End Page Content -->
- <!-- Begin Footer -->
- <div id="footer">
- <p><a href="default.html">Home</a> | <a href="login.html">Login</a>
- | <a href="view.php">View Account</a> | <a href="transfer.php">
- Transfer Funds</a></p>
- </div>
- <!-- End Footer --></div>
- <!-- End Container -->
- </body>
- <!-- #EndTemplate -->
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement