Steps 1, 2 and 3 work fine. My problem is number 4 and 5. I cannot connect to MySql either. But like you said, lets go step by step first...I put my script in one page below. Same script in my hosting company server works fine, either using one page with Self-server or sending the result and (echo) to a second page. In my local machine I do not get the echo for the results. If I sent the echo output to a 2nd page, I get just a blank page. I go to view source on that page and there is nothing. not even the html tags like HTML,HEAD,BODY and so on. just blank.
Again step 3 works. Plain Echo by itself without comming from a form works fine.
Thanks for you help and time.
<body>
<form name="ratetable" method="POST" action="<?php echo $_SERVER['PHP_SELF'];?>">
<table>
<tr>
<td align=left class=body width=150>Entry Interchange:</td><td align=left>
<select name="entryRamp" >
<option selected value="0" >From</option>
<option value="Before - San Gabriel River" >Before - San Gabriel River</option>
<option value="TX US-79" >TX US-79</option>
<option value="CR 138" >CR 138</option>
</select></td>
</tr>
<tr>
<td align=left class=body>Exit Interchange:</td><td align=left>
<select name="exitRamp" >
<option selected value="0" >To</option>
<option value="TX US-29">TX US-29</option>
<option value="CR 104" >CR 104</option>
<option value="CR 107/Chandler Rd" >Chandler Rd</option>
<option value="Pecan Street" >Pecan Street</option>
</select></td>
</tr>
<tr>
<td align=left class=body>Vehicle Class/Type:</td><td align=left>
<select name="autoclass">
<option selected value="0" >Number of Axles </option>
<option value="2">Class 2 axle vehicle </option>
<option value="3" >Class 3 axle vehicle</option>
<option value="4" >Class 4 axle vehicle</option>
<option value="5" >Class 5 axle vehicle</option>
<option value="6" >Class 6 axle vehicle</option>
</select></td>
<td align=center colspan=2><input type=submit value="Calculate"></td>
</tr>
</table>
</form>
<?php
$EntryInterchange = "Entry Interchange:";
$ExitInterchange = "Exit Interchange:";
$ramp = 0.50;
$plaza = 1.50;
$freeRamp = 0;
$yourRateis = "Your rate is:";
if (($POST[entryRamp] == "0") || ($POST[exitRamp] == "0") || ($_POST[autoclass] == "0"))
{
echo "You need to select all required fields";
}
else
{
if (($_POST[entryRamp] == "Before - San Gabriel River") && ($_POST[exitRamp] == "TX US-29") || ($_POST[exitRamp] == "CR 104") || ($_POST[exitRamp] == "CR 107/Chandler Rd"))
{
$rate = (($freeRamp + $ramp) * ($_POST[autoclass] - 1));
include ("include/tableRates.inc.php");
}
else if (($_POST[entryRamp] == "Before - San Gabriel River") && ($_POST[exitRamp] == "Pecan Street"))
{
$rate = ($freeRamp + ($plaza + $ramp) * ($_POST[autoclass] - 1));
include ("include/tableRates.inc.php");
}
else if (($_POST[entryRamp] == "TX US-79") && ($_POST[exitRamp] == "Pecan Street"))
{
$rate = (($ramp + $ramp) * ($_POST[autoclass] - 1));
include ("include/tableRates.inc.php");
}
else
{
echo "On-Ramp/Off-Ramp does not exit in this direction";
}
}
?>
</body>