[FLUG] euroconvertitore

  • From: Gecco th Rulez <gecco@xxxxxxxxxxxx>
  • To: fanolug@xxxxxxxxxxxxx
  • Date: Sat, 29 Dec 2001 14:42:55 +0100

Mailing List del Fortunae LUG
=============================

presto, affrettatevi, l'anno sta per finire, e fra poco non accetteranno
piu' le vostre lire, affrettatevi ed aggiornate, e usate
l'euroconvertitore scritto in php

create un nuovo file, chiamatolo index.php3 (o come preferite poi pero'
dovete cambiare il nome anche nell'altro file) e scriveteci dentro:

<html><head><title>Euro convertitore 0.0.1beta by
Gecco</title></head><body>
<?
$cambio=1936.27;
$euro=$lire/$cambio;
echo "Un euro vale $cambio.<br>" . "Tu hai inserito $lire Lire <br>che
sono ";
printf ("%.3f", $euro);
echo " euro<br>";
include ('form.inc');
?>
</body></html>

fate un'altro file e chiamatelo form.inc e metteteci dentro :

<form action="index.php3" method="get">
Lire : <input type="Text" name="lire"><br>
<INPUT type="submit" value="Invia"> <INPUT type="reset">
</form>

salvateli entrambi, metteteli in una dir del vostro server web, che
ovviamente deve supportare il php, e richiamate la pagina con un browser
e cosi' potrete passare anche voi all'euro in modo indolore

ho fatto il form separato per rendere il tutto modulare

bau
-- 
Machine gave me some freedom.
Sia lodato Linus Torvalds!

Other related posts:

  • » [FLUG] euroconvertitore