I have 2 parallel systems for php development
Debian linux with apache and PHP4
and Windows XP professional with apache & PHP4
I have been in the habit of debugging on the xp machine before I
upload to the debian server
If I run this example , it works fine on the linux web server
_______________ _______________ ___
problem.html
<HTML><BODY>
<FORM METHOD=POST ACTION="problem .php">
show your email address to others ?
<INPUT NAME="showmail" TYPE="Checkbox" >
<BR><BR>
<INPUT TYPE=SUBMIT>
</FORM></BODY></HTML>
=============== =============== =====
problem.php
<HTML><BODY>
<?php
echo $showmail;
?>
</BODY></HTML>
_______________ _______________ ___
On XP it runs fine but only if the checkbox is selected. If I do not
select the checkbox & hit submit I get this error. (it fails because
$showmail is not defined)
Notice: Undefined variable: Choice in c:\program files\apache
group\apache\ht docs\begphp\ch0 3\problem.php on line 3
I have compared the php.ini files of the 2 systems and cannot see any
significant differences. I have had one or 2 other anomalies between
the 2 systems, but this is fundamentally the most difficult to
diagnose
Thanks in advance for any assistance
Synergz
Debian linux with apache and PHP4
and Windows XP professional with apache & PHP4
I have been in the habit of debugging on the xp machine before I
upload to the debian server
If I run this example , it works fine on the linux web server
_______________ _______________ ___
problem.html
<HTML><BODY>
<FORM METHOD=POST ACTION="problem .php">
show your email address to others ?
<INPUT NAME="showmail" TYPE="Checkbox" >
<BR><BR>
<INPUT TYPE=SUBMIT>
</FORM></BODY></HTML>
=============== =============== =====
problem.php
<HTML><BODY>
<?php
echo $showmail;
?>
</BODY></HTML>
_______________ _______________ ___
On XP it runs fine but only if the checkbox is selected. If I do not
select the checkbox & hit submit I get this error. (it fails because
$showmail is not defined)
Notice: Undefined variable: Choice in c:\program files\apache
group\apache\ht docs\begphp\ch0 3\problem.php on line 3
I have compared the php.ini files of the 2 systems and cannot see any
significant differences. I have had one or 2 other anomalies between
the 2 systems, but this is fundamentally the most difficult to
diagnose
Thanks in advance for any assistance
Synergz
Comment