I just upgraded to from PHP 3.x to the latest version. 4.0.4(pl1). Anyway, a simple script that used to work, no longer works.
If anyone could help, I'd greatly appreciate it. Thanks!
I get these 2 simple errors:
Warning: Undefined variable: rush in c:\web\apache\htdocs\fenix\guestbook\guestbook.php on line 13
Warning: Undefined variable: dave in c:\web\apache\htdocs\fenix\guestbook\guestbook.php on line 73
However, I checked, and the two variables are being 'named' in the form that calls this script(notice that the other variables are being passed successfully).
Here is the code for the form that I am using:
<FORM METHOD=POST ACTION="guestbook.php">
<P>
<font size="3" class="s4" face="Arial, Helvetica">
Name:<BR>
<INPUT TYPE=text NAME=name SIZE=30 maxlength=80><BR>
Email:<BR>
<INPUT TYPE=text NAME=email SIZE=30 maxlength=80><BR>
Notes:
<BR>
<TEXTAREA NAME=comments ROWS=10 COLS=30 WRAP=virtual></TEXTAREA>
<BR><BR>
</FONT>
<table>
<tr>
<td><font size="3" class="s4" face="Arial, Helvetica">Check here if you've used HTML tags in any field:</FONT></td>
<td><INPUT TYPE=checkbox NAME=dave value="1"><BR></td>
</tr>
<tr>
<td><font size="3" class="s4" face="Arial, Helvetica">Check to preview your comments before posting:</FONT></td>
<td><INPUT TYPE=checkbox NAME=rush value="preview"><BR></td>
</tr>
</table>
<p></P>
<BR>
<P><font size="2" class="s3" face="Arial, Helvetica"><INPUT TYPE=submit NAME=gb VALUE="Add Message"> Please press only once: this may take a moment (or two).</FONT>
</FORM>