PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Harish Chauhan   Currency Symbols   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: example
Class: Currency Symbols
Get the symbols of currency of a given country
Author: By
Last change:
Date: 18 years ago
Size: 651 bytes
 

Contents

Class file image Download
<html>
<head>
<title>Currency Symbols</title>
</head>
<body>
<TABLE cellspacing=5>
<FORM METHOD=POST ACTION="" >
<TR>
    <TD><B>Choose your currency </B><BR>
    <?php
   
require_once("currency_symbols.inc.php");
   
$curr=new CurrencySymbols;
    echo
"<select name='curr'>";
   
$allcurr=$curr->getAllCurrencyName();
    foreach(
$allcurr as $key => $value)
        echo
"<option value='".$key."' ".($_POST['curr']==$key?'selected':'').">".$value."</option>";
    echo
"</select>";
?><BR>&nbsp;<BR>
<INPUT TYPE="submit" value='Get Symbol'>&nbsp;<BR><BR><img src='currency_symbols.php?curr=<?=$_POST['curr']?>'>
</TD>
</TR>
</FORM>
</TABLE></body>
</html>