hallo ihr lieben!
da bin ich nun wieder...immer noch mit der selben sache/seite beschäftigt...
ich hab schon eine menge ausprobiert und rumexperimentiert mit codeabschnitten aber ich komm nicht drauf wo hier der fehler liegt. ich bekomm einfach gar keine ausgabe.
also hier mein code:
<?php
if ($_POST['vorname']!=="" AND $_POST['name']!=="" AND $_POST['strasse']!=="" AND $_POST['hausnummer']!=="" AND $_POST['plz']!=="" AND $_POST['ort']!=="" AND $_POST['telefon']!=="")
{
echo "Vielen Dank für Ihre Bestellung!";
if ($_POST['1a']=="")
{
$_POST['1a'] = 0;
}
if ($_POST['1b']=="")
{
$_POST['1b'] = 0;
}
if ($_POST['1c']=="")
{
$_POST['1c'] = 0;
}
if ($_POST['1d']=="")
{
$_POST['1d'] = 0;
}
if ($_POST['2a']=="")
{
$_POST['2a'] = 0;
}
if ($_POST['2b']=="")
{
$_POST['2b'] = 0;
}
if ($_POST['2c']=="")
{
$_POST['2c'] = 0;
}
if ($_POST['2d']=="")
{
$_POST['2d'] = 0;
}
if ($_POST['3a']=="")
{
$_POST['3a'] = 0
}
if ($_POST['3b']=="")
{
$_POST['3b'] = 0;
}
if ($_POST['3c']=="")
{
$_POST['3c'] = 0;
}
if ($_POST['3d']=="")
{
$_POST['3d'] = 0;
}
if ($_POST['4a']=="")
{
$_POST['4a'] = 0;
}
if ($_POST['4b']=="")
{
$_POST['4b'] = 0;
}
if ($_POST['4c']=="")
{
$_POST['4c'] = 0;
}
if ($_POST['4d']=="")
{
$_POST['4d'] = 0;
}
if ($_POST['5a']=="")
{
$_POST['5a'] = 0;
}
if ($_POST['5b']=="")
{
$_POST['5b'] = 0;
}
if ($_POST['5c']=="")
{
$_POST['5c'] = 0;
}
if ($_POST['5d']=="")
{
$_POST['5d'] = 0;
}
if ($_POST['6a']=="")
{
$_POST['6a'] = 0;
}
if ($_POST['6b']=="")
{
$_POST['6b'] = 0;
}
if ($_POST['6c']=="")
{
$_POST['6c'] = 0;
}
if ($_POST['6d']=="")
{
$_POST['6d'] = 0;
}
if ($_POST['7a']=="")
{
$_POST['7a'] = 0;
}
if ($_POST['7b']=="")
{
$_POST['7b'] = 0;
}
if ($_POST['7c']=="")
{
$_POST['7c'] = 0;
}
if ($_POST['7d']=="")
{
$_POST['7d'] = 0;
}
if ($_POST['8a']=="")
{
$_POST['8a'] = 0;
}
if ($_POST['8b']=="")
{
$_POST['8b'] = 0;
}
if ($_POST['8c']=="")
{
$_POST['8c'] = 0;
}
if ($_POST['8d']=="")
{
$_POST['8d'] = 0;
}
if ($_POST['9a']=="")
{
$_POST['9a'] = 0;
}
if ($_POST['9b']=="")
{
$_POST['9b'] = 0;
}
if ($_POST['9c']=="")
{
$_POST['9c'] = 0;
}
if ($_POST['9d']=="")
{
$_POST['9d'] = 0;
}
if ($_POST['10a']=="")
{
$_POST['10a'] = 0;
}
if ($_POST['10b']=="")
{
$_POST['10b'] = 0;
}
if ($_POST['10c']=="")
{
$_POST['10c'] = 0;
}
if ($_POST['10d']=="")
{
$_POST['10d'] = 0;
}
if ($_POST['11a']=="")
{
$_POST['11a'] = 0;
}
if ($_POST['11b']=="")
{
$_POST['11b'] = 0;
}
if ($_POST['11c']=="")
{
$_POST['11c'] = 0;
}
if ($_POST['11d']=="")
{
$_POST['11d'] = 0;
}
if ($_POST['12a']=="")
{
$_POST['12a'] = 0;
}
if ($_POST['12b']=="")
{
$_POST['12b'] = 0;
}
if ($_POST['12c']=="")
{
$_POST['12c'] = 0;
}
if ($_POST['12d']=="")
{
$_POST['12d'] = 0;
}
if ($_POST['13a']=="")
{
$_POST['13a'] = 0;
}
if ($_POST['13b']=="")
{
$_POST['13b'] = 0;
}
if ($_POST['13c']=="")
{
$_POST['13c'] = 0;
}
if ($_POST['13d']=="")
{
$_POST['13d'] = 0;
}
if ($_POST['14a']=="")
{
$_POST['14a'] = 0;
}
if ($_POST['14b']=="")
{
$_POST['14b'] = 0;
}
if ($_POST['14c']=="")
{
$_POST['14c'] = 0;
}
if ($_POST['14d']=="")
{
$_POST['14d'] = 0;
}
if ($_POST['15a']=="")
{
$_POST['15a'] = 0;
}
if ($_POST['15b']=="")
{
$_POST['15b'] = 0;
}
if ($_POST['15c']=="")
{
$_POST['15c'] = 0;
}
if ($_POST['15d']=="")
{
$_POST['15d'] = 0;
}
if ($_POST['16a']=="")
{
$_POST['16a'] = 0;
}
if ($_POST['16b']=="")
{
$_POST['16b'] = 0;
}
if ($_POST['16c']=="")
{
$_POST['16c'] = 0;
}
if ($_POST['16d']=="")
{
$_POST['16d'] = 0;
}
if ($_POST['17a']=="")
{
$_POST['17a'] = 0;
}
if ($_POST['17b']=="")
{
$_POST['17b'] = 0;
}
if ($_POST['17c']=="")
{
$_POST['17c'] = 0;
}
if ($_POST['17d']=="")
{
$_POST['17d'] = 0;
}
if ($_POST['18a']=="")
{
$_POST['18a'] = 0;
}
if ($_POST['18b']=="")
{
$_POST['18b'] = 0;
}
if ($_POST['18c']=="")
{
$_POST['18c'] = 0;
}
if ($_POST['18d']=="")
{
$_POST['18d'] = 0;
}
if ($_POST['19a']=="")
{
$_POST['19a'] = 0;
}
if ($_POST['19b']=="")
{
$_POST['19b'] = 0;
}
if ($_POST['19c']=="")
{
$_POST['19c'] = 0;
}
if ($_POST['19d']=="")
{
$_POST['19d'] = 0;
}
if ($_POST['20a']=="")
{
$_POST['20a'] = 0;
}
if ($_POST['20b']=="")
{
$_POST['20b'] = 0;
}
if ($_POST['20c']=="")
{
$_POST['20c'] = 0;
}
if ($_POST['20d']=="")
{
$_POST['20d'] = 0;
}
if ($_POST['21a']=="")
{
$_POST['21a'] = 0;
}
if ($_POST['21b']=="")
{
$_POST['21b'] = 0;
}
if ($_POST['21c']=="")
{
$_POST['21c'] = 0;
}
if ($_POST['21d']=="")
{
$_POST['21d'] = 0;
}
$f1 = "1: " .$_POST['1a']. " " .$_POST['1b']. " " .$_POST['1c']. " " .$_POST['1d'];
$f2 = "2: " .$_POST['2a']. " " .$_POST['2b']. " " .$_POST['2c']. " " .$_POST['2d'];
$f3 = "3: " .$_POST['3a']. " " .$_POST['3b']. " " .$_POST['3c']. " " .$_POST['3d'];
$f4 = "4: " .$_POST['4a']. " " .$_POST['4b']. " " .$_POST['4c']. " " .$_POST['4d'];
$f5 = "5: " .$_POST['5a']. " " .$_POST['5b']. " " .$_POST['5c']. " " .$_POST['5d'];
$f6 = "6: " .$_POST['6a']. " " .$_POST['6b']. " " .$_POST['6c']. " " .$_POST['6d'];
$f7 = "7: " .$_POST['7a']. " " .$_POST['7b']. " " .$_POST['7c']. " " .$_POST['7d'];
$f8 = "8: " .$_POST['8a']. " " .$_POST['8b']. " " .$_POST['8c']. " " .$_POST['8d'];
$f9 = "9: " .$_POST['9a']. " " .$_POST['9b']. " " .$_POST['9c']. " " .$_POST['9d'];
$f10 = "10: " .$_POST['10a']. " " .$_POST['10b']. " " .$_POST['10c']. " " .$_POST['10d'];
$f11 = "11: " .$_POST['11a']. " " .$_POST['11b']. " " .$_POST['11c']. " " .$_POST['11d'];
$f12 = "12: " .$_POST['12a']. " " .$_POST['12b']. " " .$_POST['12c']. " " .$_POST['12d'];
$f13 = "13: " .$_POST['13a']. " " .$_POST['13b']. " " .$_POST['13c']. " " .$_POST['13d'];
$f14 = "14: " .$_POST['14a']. " " .$_POST['14b']. " " .$_POST['14c']. " " .$_POST['14d'];
$f15 = "15: " .$_POST['15a']. " " .$_POST['15b']. " " .$_POST['15c']. " " .$_POST['15d'];
$f16 = "16: " .$_POST['16a']. " " .$_POST['16b']. " " .$_POST['16c']. " " .$_POST['16d'];
$f17 = "17: " .$_POST['17a']. " " .$_POST['17b']. " " .$_POST['17c']. " " .$_POST['17d'];
$f18 = "18: " .$_POST['18a']. " " .$_POST['18b']. " " .$_POST['18c']. " " .$_POST['18d'];
$f19 = "19: " .$_POST['19a']. " " .$_POST['19b']. " " .$_POST['19c']. " " .$_POST['19d'];
$f20 = "20: " .$_POST['20a']. " " .$_POST['20b']. " " .$_POST['20c']. " " .$_POST['20d'];
$f21 = "21: " .$_POST['21a']. " " .$_POST['21b']. " " .$_POST['21c']. " " .$_POST['21d'];
$timestamp = time();
$datum = date ("d.m.Y - H:i", $timestamp);
$betreff = "Bestellung: " .$datum;
$text = "Name: " .$_POST['vorname']. " " .$_POST['name']. " \n Adresse: " .$_POST['strasse']. " " .$_POST['hausnummer']. " \n " .$_POST['plz']. " " .$_POST['ort']. " \n Telefon: " .$_POST['telefon']. " \n Fax: " .$_POST['fax']. " \n Email: " .$_POST['email']. " \n \n " .$f1. " \n " .$f2. " \n " .$f3. " \n " .$f4. " \n " .$f5. " \n " .$f6. " \n " .$f7. " \n " .$f8. " \n " .$f9. " \n " .$f10. " \n " .$f11. " \n " .$f12. " \n " .$f13. " \n " .$f14. " \n " .$f15. " \n " .$f16. " \n " .$f17. " \n " .$f18. " \n " .$f19. " \n " .$f20. " \n " .$f21;
echo $betreff. " " .$text;
}
else
{
echo "Bitte füllen Sie alle gekennzeichneten Felder aus!"
}
?>
dazu gehört eine andere php-datei mit einem formular -natürlich mit den entsprechenden namen für die variablen-, das funktioniert aber...
also hat irgendwer hier eine idee worans liegen könnte?!
vielen lieben dank schoneinmal im voraus...ich steh im mom echt auf dem schlauch!
...deshalb auch der relativ nichtssagende thread-titel
lg eudokya