<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> <BR>
<INPUT TYPE="submit" value='Get Symbol'> <BR><BR><img src='currency_symbols.php?curr=<?=$_POST['curr']?>'>
</TD>
</TR>
</FORM>
</TABLE></body>
</html>
|