i wrote this script and i cant get any ouput from it.

$time = $_POST['time'];  
        $budget = $_POST['budget'];
        $visual = $_POST['visual'];
        $update = $_POST['update'];

 $custom = 0; $stream = 0;
            $easyup = 0; $selfup = 0; $upserve = 0;
            
            if($time == "deadline"){ $custom = $custom + 1; }
            if($time == "nodeadline"){ $stream = $stream + 1; }
            
            if($budget == "low"){ $sream = $stream + 3; }
            
            if($visual == "impressive"){ $custom = $custom + 2; }
            
            if($update == "easyupdate"){ $easyup = $easyup + 1; }
            if($update == "noupdate"){ $selfup = $selfup + 1; }
            if($update == "updateservice"){ $upserve = $upserve + 1; }

You don't have any output statements in there at all. You need to use print or echo (or some other appropriate stream output methods) if you want any output. What are you wanting to do with the data?

i do, i just didnt post them

i do, i just didnt post them

i have tryed echoing with all of the variables. i hope ( once i am getting atleast basic ouput. to have somthing like this ( i know, its horrible, i just baiscaly jotted some thoughts down) :

if($custom < $stream){$report = "streamlined is better for you than custom";}
                if($custom > $stream){$report = "custom is better for you than streamlined";}
                if($easyup < $upserve){$report2 = "you need our update service with your site";}
                if($easyup > $upserve){$report2 = "you need our user-friendly update service with your site";}
                if($selfup > $upserve){$report = "you do not need any of our update services";}
                if($selfup > $easyup){$report = "you need our update service with your site";} 
   echo"$report";

I guess your problem must lay in the form your using. To did you made a little typo: if($budget == "low"){ $sream = $stream + 3; } if the post variable's aren't initialized will none of these statements evaluate:

if($time == "deadline"){ $custom = $custom + 1; }
            if($time == "nodeadline"){ $stream = $stream + 1; }
            
            if($budget == "low"){ $sream = $stream + 3; }
            
            if($visual == "impressive"){ $custom = $custom + 2; }
            
            if($update == "easyupdate"){ $easyup = $easyup + 1; }
            if($update == "noupdate"){ $selfup = $selfup + 1; }
            if($update == "updateservice"){ $upserve = $upserve + 1; }

Leaving $custom, $stream, $easyup, $selfup, $upserve zero (their value stays zero). Which will respond by none of your if statements evaluating to true:

if($custom < $stream){$report = "streamlined is better for you than custom";}
if($custom > $stream){$report = "custom is better for you than streamlined";}
if($easyup < $upserve){$report2 = "you need our update service with your site";}
if($easyup > $upserve){$report2 = "you need our user-friendly update service with your site";}
if($selfup > $upserve){$report = "you do not need any of our update services";}
if($selfup > $easyup){$report = "you need our update service with your site";}

Which leaves $report (and $report2, which you don't output) a blank string.
So I think your problem lays in your form. you might want to add to help you debugging:

echo "<pre>";
print_r($_POST);
echo "</pre>";

Hope this helps

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.