回音字符串返回号码[关闭]

This code is returning as a number for some reason (where "$RTEXT" is supposed to be); Is there something I'm missing? Stupid mistake? Please help.

    if($_POST['Action_3']){
    if(isset($_POST['act4_0'])){
    $rank = 0;
    $RTEXT = "Member";
    }elseif(isset($_POST['act4_1'])){
    $rank = 1;
    $RTEXT = "Graphic designer";
    }elseif(isset($_POST['act4_2'])){
    $rank = 2;
    $RTEXT = "Moderator";
    }elseif(isset($_POST['act4_3'])){
    $rank = 3;
    $RTEXT = "Administrator";
    }elseif(isset($_POST['act4_4'])){
    $rank = 4;
    $RTEXT = "Director of media";
    }elseif(isset($_POST['act4_5'])){
    $rank = 5;
    $RTEXT = "Community manager";
    }elseif(isset($_POST['act4_6'])){
    $rank = 6;
    $RTEXT = "Senior manager";
    }elseif(isset($_POST['act4_7'])){
    $rank = 7;
    $RTEXT = "Senior moderator/Admin";
    }
echo "<div style='float:left;margin:-660px 100px;min-width:760px;text-indent:190px;font-size:15px;'class='alert alert-success'><strong>Success!</strong> You have successfully changed (<b>" . $_POST['username'] . "'s</b>) rank to (<b>" . $RTEXT . "</b>). </div>";

did you try to echo each $RTEXT

inside each condition first to see which condition it will fall and then to see if its return the value of $RTEXT as string or as integer?

maybe you forgot to close the if($_POST['Action_3']) with } at the end of statement