NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Foreign Currency Saving Planner</title>

<script>
function startTime() {
var today=new Date();
var h=today.getHours();
var m=today.getMinutes();
var s=today.getSeconds();
var yr=today.getYear();
var mon=today.getMonth();
var day=today.getDay();
m = checkTime(m);
s = checkTime(s);
document.getElementById('time').innerHTML = day +"-"+ mon +"-"+ yr + " " +h+":"+m+":"+s;
var t = setTimeout(function(){startTime()},500);
}

function checkTime(i) {
if (i<10) {i = "0" + i}; // add zero in front of numbers < 10
return i;
}

function isNumber(n) {
return !isNaN(parseFloat(n)) && isFinite(n);
}

function validateForm(){
if(document.myForm.capital.value == "" )
{
document.getElementById("alert_cap").innerHTML = "*Required";
document.myForm.capital.focus() ;
return false;
}
if(!isNumber(document.myForm.capital.value)){
document.getElementById("alert_cap").innerHTML = "Please enter a valid number";
document.myForm.capital.focus();
return false;
}
if(document.myForm.period_year.value =="" && document.myForm.period_month.value==""){
document.getElementById("alert_period").innerHTML = "Please enter the deposit period";
document.myForm.period_year.focus();
document.myForm.period_month.focus();
return false;
}
if(document.myForm.period_year.value !=""){
if(!isNumber(document.myForm.period_year.value)){
document.getElementById("alert_period").innerHTML = "Please enter a valid number";
document.myForm.period_year.focus();
return false;
}
}
if(document.myForm.period_month.value!=""){
if(!isNumber(document.myForm.period_month.value)){
document.getElementById("alert_period").innerHTML = "Please enter a valid number";
document.myForm.period_month.focus();
return false;
}
}
return true;
}

</script>

<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>

<body onload="startTime()">

<div id="header">
<p id="time"></p><br>
</div>

<div id="menu">
<table>
<tr>
<td><a href="rate.html">Interest Rate</a></td>
</tr>
</table>
</div><br><br>

<div id="nav"><p id="intro">This is a foreign currency saving planner.</p>
</div><br>


<div id="content">
<?php
// define variables and set to empty values
$capitalErr = $monthErr = "";

if ($_SERVER["REQUEST_METHOD"] == "GET") {
if (empty($_GET["capital"])) {
$capitalErr = "Capital is required";
} else {
$capital = test_input($_GET["capital"]);
if (!preg_match("/^[a-zA-Z ]*$/",$name)) {
$nameErr = "Only letters and white space allowed";

}

if (empty($_GET["period_year"]) && empty($_GET["period_month"]) ) {
$monthErr = "Deposit Period is required. Please fill in at least one field";
} else {
$period_month = test_input($_GET["period_month"]);
}
}

function test_input($data) {
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}
?>


<form name="myForm" action="submit_page.html" onsubmit="return validateForm();" method="get">
Please enter the capital:
<input type="number" name="capital" min="0" value="" required="required"><a id="alert_cap" class="alert"></a><br>
Please enter the deposit period:
<input type="number" name="period_year" min="0" max="80" value=""> year(s)
<input type="number" name="period_month" min="0" max="11" value="">month(s)
<a id="alert_period" class="alert"></a><br><br>
<input type="submit" value="Submit">
</form>
</div>


<div id="footer">footer</div>

</body>
</html>

     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.