I have had this problem for a while, and now I think I have a config problem. Orignally I was having problems with Select Option values not showing up correctly. I have dug a little deeper and I have a html form that generates this GET post:
http://205.138.58.3/test/tssubmit2.php?&realname=JoeBlow&EmployeeNo=123456&WeekEndDate=12%2F8%2F2000&work1=171099&Description1=TESTTEST&Sun1=&Mon1=5&Tue1=&Wed1=&Thu1=&Fri1=&Sat1=&Total1=2
The tssubmit2.php file is as follows:
<body>
<?php
$newsplit = explode("/", $WeekEndDate);
$Sunday = date("Y-m-d",mktime(0,0,0,$newsplit[0],$newsplit[1]-5,$newsplit[2]));
$Monday = date("Y-m-d",mktime(0,0,0,$newsplit[0],$newsplit[1]-4,$newsplit[2]));
$Tuesday = date("Y-m-d",mktime(0,0,0,$newsplit[0],$newsplit[1]-3,$newsplit[2]));
$Wednesday = date("Y-m-d",mktime(0,0,0,$newsplit[0],$newsplit[1]-2,$newsplit[2]));
$Thursday = date("Y-m-d",mktime(0,0,0,$newsplit[0],$newsplit[1]-1,$newsplit[2]));
$Friday = date("Y-m-d",mktime(0,0,0,$newsplit[0],$newsplit[1],$newsplit[2]));
$Saturday = date("Y-m-d",mktime(0,0,0,$newsplit[0],$newsplit[1]+1,$newsplit[2]));
print ("Employee: $EmployeeNo");
print ("<p>");
print ("Week end date: $WeekEndDate");
print ("<p>");;
print ("Work1: $work1");
print ("<p>");
print ("Mon: $Mon1");
print ("<p>");
print ("Tue: $Tue1");
print ("<p>");
print ("Wed: $Wed1");
print ("<p>");
print ("Thu: $Thu1");
print ("<p>");
print ("Fri: $Fri1");
print ("<p>");
print ("Description: $Description1");
print ("<p>");
print ("Thanks for submitting.");
?>
</body>
I was originally putting all these values in a MySQL database but, I have cut that out till I get the bugs worked out.
If I modify the GET URL, one some of the data changes. Specifically if I modify one of the variables that is a number, it changes. If I modify one that is a string, it does not change. It retains the previous value.
If I use the URL:
http://205.138.58.3/test/tssubmit2.php?&realname=JoeBlow&EmployeeNo=123456&WeekEndDate=12%2F8%2F2000&work1=171099&Description1=TESTTEST&Sun1=&Mon1=5&Tue1=&Wed1=&Thu1=&Fri1=&Sat1=&Total1=2
I get this output from tssubmit2.php:
Employee: 039703
Week end date: 12/8/2000
Work1: 4
Mon: 5
Tue:
Wed:
Thu:
Fri:
Description: testavs12
Thanks for submitting.
Which if you look, the employee number that is coming through is in the URL, but php doesn't pick it up, it uses the old one. This is also true to work1, and description1. If I change one the variables that only has a number for a value, i.e. mon1, tue1, wed1, thu1, etc. The value changes fine.
i.e.
http://205.138.58.3/test/tssubmit2.php?&realname=JoeBlow&EmployeeNo=121212&WeekEndDate=12%2F9%2F2000&work1=ABCD&Description1=TESTTEST&Sun1=&Mon1=12&Tue1=&Wed1=&Thu1=&Fri1=&Sat1=&Total1=2
gives this:
Employee: 039703
Week end date: 12/9/2000
Work1: 4
Mon: 12
Tue:
Wed:
Thu:
Fri:
Description: testavs12
Thanks for submitting.
Does anyone have a clue what's going on? Any help would be greatly appreciated.
Mark