לא רוצה לבאס
אבל:
PHP קוד:
if ($POST['pack'] == "hosting-small") $pack="hosting-small";
if ($POST['pack'] == "hosting-medium") $pack="hosting-medium";
if ($POST['pack'] == "hosting-big") $pack="hosting-big";
if ($POST['pack'] == "kav1") $pack="kav1";
if ($POST['pack'] == "radio-small") $pack="radio-small";
if ($POST['pack'] == "radio-medium") $pack="radio-medium";
if ($POST['pack'] == "radio-big") $pack="radio-big";
if ($POST['pack'] == "kav2") $pack="kav2";
if ($POST['pack'] == "resellers-small") $pack="resellers-small";
if ($POST['pack'] == "resellers-medium") $pack="resellers-medium";
if ($POST['pack'] == "resellers-big") $pack="resellers-big";
if ($POST['pack'] == "kav4") $pack="kav4";
if ($POST['pack'] == "domain-world") $pack="domain-world";
if ($POST['pack'] == "domain-il") $pack="domain-il";
WTF? לא קל יותר
PHP קוד:
$pack=$_POST['pack'];
?
בכלל כל הקוד מסורבל ולא נכון