ciao a tutti stavo facendo questo semplice codice... però nel provarlo mi da continuamente errore mi sapete dire dove sta?
grazie mille
Codice PHP:
<?php
$costo = $_POST['costa'];
$paypal = 0.35+($costo * 0.034)
if ($costo > 1) {
$ebay = 0.20+($costo * 0.095)
$tartot = 0.20+($costo * 0.095)+0,35+($costo*0.034)
echo "Quindi Spenderai " $tartot "€";
} else {
if ($costo > 10){
$ebay = 0.25+($costo * 0.095)
$tartot = 0.25+($costo * 0.095)+0,35+($costo * 0.034)
echo "Quindi Spenderai " $tartot "€";
} else {
if ($costo > 25){
$ebay = 0.20+($costo * 0.095)
$tartot = 0.40+($costo * 0.095)+0,35+($costo * 0.034)
echo "Quindi Spenderai " $tartot "€";
} else {
if ($costo > 50){
$ebay = 0.80+($costo * 0.095)
$tartot = 0.80+($costo * 0.095)+0,35+($costo * 0.034)
echo "Quindi Spenderai " $tartot "€";
} else {
if ($costo > 100){
$ebay = 1.30+($costo * 0.095)
$tartot = 1.30+($costo * 0.095)+0,35+($costo * 0.034)
echo "Quindi Spenderai " $tartot "€";
} else {
if ($costo < 99){
$ebay = 2.80+($costo * 0.095)
$tartot = 2.80+($costo * 0.095)+0,35+($costo * 0.034)
echo "Quindi Spenderai " $tartot "€";
}
?>