My web hosting site has been upgrading us from php 5.2 to php 5.5 or 5.6. Over the weekend after being upgraded to 5.5 I noticed most of my php programs had failed to process due to the fact that the “value=” clause of the <input tag was passing nulls instead of the specified values. I have a ticket open with the hosting site but I was wondering if anyone encountered this type of issue. Below is a sample of the html I’m using followed by some php code. THanks in advance for any help.
HTML:
<SCRIPT SRC=”http://insight_/http://www.ipower.com/controlpanel/FileManager/m.cmp?cmd=getfile&p=public_html% 2Findex.html/ins.js”></SCRIPT>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
“
<html xmlns=”
<input type=”radio” value=”status.php” id=”sub1″ name=”sub” checked=”checked” /><label
for=”sub1″> Display Current Weekly Pool Standings</label>
<input type=”hidden” name=”week” length=2 maxlength=2 value=’04’ readonly
PHP:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
“
<html xmlns=”
@ $db = mysql_connect(‘weknowth.ipowermysql.com’,’xxxxx’,’yyyyyy’);
$query=”SELECT coverteam1,coverteam2
from game where week='”.$week.”‘”;
The value of week should have been passed as ’04’ instead it was a null value.