Te damos la bienvenida a nuestra comunidad, ahora vas a hallar la respuesta de lo que buscabas.
Ejemplo: script de conversión de moneda php
<html><head><style>#boxwidth:350px;height:270px;margin:0px auto;border:2px solid black;h2text-align: center;tablemargin:0px auto;style>head><body><formalign="center"action="currencyconvertor.php"method="post"><divid="box"><h2><center>Currency Convertercenter>h2><table><tr><td>
Enter Amount:<inputtype="text"name="amount"><br>td>tr><tr><td><br><center>From:<selectname='cur1'><optionvalue="AUD">Australian Dollar(AUD)option><optionvalue="USD"selected>US Dollar(USD)option>select>td>tr><tr><td><br><center>To:<selectname='cur2'><optionvalue="INR"selected>Indian Rupee(INR)option><optionvalue="JPY">Japanese Yen(JPY)option><optionvalue="PHP">Philippine Peso(PHP)option>select>td>tr><tr><td><center><br><inputtype='submit'name='submit'value="CovertNow">center>td>tr>table>form>if(isset($_POST['submit']))$amount=$_POST['amount'];$cur1=$_POST['cur1'];$cur2=$_POST['cur2'];if($cur1=="AUD"AND$cur2=="JPY")echo"Your Converted Amount is:
";echo"" .$amount*82.463."";if($cur1=="AUD"AND$cur2=="INR")echo"Your Converted Amount is:
";echo"" .$amount*51.09."";if($cur1=="AUD"AND$cur2=="PHP")echo"Your Converted Amount is:
";echo"" .$amount*37.15."";if($cur1=="USD"AND$cur2=="JPY")echo"Your Converted Amount is:
";echo"" .$amount*109.49."";if($cur1=="USD"AND$cur2=="INR")echo"Your Converted Amount is:
";echo"" .$amount*67.83."";if($cur1=="USD"AND$cur2=="PHP")echo"Your Converted Amount is:
";echo"" .$amount*49.32."";?>body>html>
Si crees que te ha sido provechoso este artículo, nos gustaría que lo compartas con el resto juniors de esta forma nos ayudas a extender esta información.
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)