Maybe the Google Chrome browser is more sensitive to less than perfect coding because I cannot get my word count (calculated # of words created from a word counter on previous page) to echo from the previous page. It works fine on Internet Explorer and Firefox.
The word count number does show OK in the url.
Can anyone see a problem with it?
//above HTML
<?
$serv = $_GET['serv']; // retrieves the data and creates a variable called $serv
$words = $_GET['words']; // as above
$servvalue = $serv; // creating a value to go in the drop down box..
if($serv == 1)
{
$serv = "Standard - 3 Day/72 Hour Return - $5.00 Per Page";
$opt1 = ' selected="selected"';
}
if($serv == 2)
{
$serv = "Expedite - 2 Day/48 Hour Return - $7.50 Per Page";
$opt2 = ' selected="selected"';
}
if($serv == 3)
{
$serv = "Overnight - 1 Day/24 Hour Return - $9.00 Per Page";
$opt3 = ' selected="selected"';
}
?>
//where the word count number should populate from previous page
<input name="txtWordCount" type="text" size="12" maxlength="12" value="
<?php echo $words; ?>" /></a>Words</a>
<input name="numCount" type="text" size="4" maxlength="4"
value="<?php echo ceil($words/300); ?>" /></a>Pages</a>
Just in case it is needed, here is the code for page 1 where the word count it:
<input type="text" name="txtStandardEst" size="20" maxlength="20" />
</td>
<td><input type="button" value="Quick Checkout" name="btnCheckout" onclick="goToCheckout(1)" />
</td>
</tr>
<tr>
<td class="pagetext"> Expedite - 2 Day/48 Hour Return - $7.50 Per Page </td>
<td><input type="text" name="txtExpediteEst" size="20" maxlength="20" />
</td>
<td><input type="button" value="Quick Checkout" name="btnCheckout" onclick="goToCheckout(2)" />
</td>
</tr>
<tr>
<td class="pagetext"> Overnight - 1 Day/24 Hour Return - $9.00 Per Page </td>
<td><input type="text" name="txtOvernightEst" size="20" maxlength="20" />
</td>
<td><input type="button" value="Quick Checkout" name="btnCheckout" onclick="goToCheckout(3)" />