Jeanjill1
Memory Dump Analyst
LEVEL 1
200 XP
A currency converter that converts Philippine Peso into different currency. The values of each currency would change depending upon the current market value.
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
- <?php
- $currency
=
$_POST
[
'currency'
]
;
- $place
=
$_POST
[
'place'
]
;
- $ARS
=
0.06586
;
- $BSD
=
0.02129
;
- $BRL
=
0.03794
;
- $CAD
=
0.02286
;
- $COP
=
44.56140
;
- switch
(
$place
)
{
- case
"Argentine Peso"
:
- $a
=
(
$currency
*
$ARS
)
;
- echo
"<p>Php $currency
is equivalent
- to $a
ARS in Argentina</p>"
;
- break
;
- case
"Bahamian Dollar"
:
- $b
=
(
$currency
*
$BSD
)
;
- echo
"<p>Php $currency
is equivalent
- to $b
BSD in Bahama</p>"
;
- break
;
- case
"Brazilian Real"
:
- $c
=
(
$currency
*
$BRL
)
;
- echo
"<p>Php $currency
is equivalent
- to $c
BRL in Brazil</p>"
;
- break
;
- case
"Canadian Dollar"
:
- $d
=
(
$currency
*
$CAD
)
;
- echo
"<p>Php $currency
is equivalent
- to $d
CAD in Canada</p>"
;
- break
;
- case
"Colombian Peso"
:
- $e
=
(
$currency
*
$COP
)
;
- echo
"<p>Php $currency
is equivalent
- to $e
COP in Colombia</p>"
;
- }
- //REFERENCE: http://www.exchange-rates.org/currentRates/PHP
- ?>
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.