I've written a handful of php files that grab input in another page's form, then e-mail it or write to file, without problem.
Until now, and I don't understand why.
When trying to process the form, I get a browser full of lines like these:
Notice: Undefined variable: desc in e:\Inetpub\wwwroot\phptest\calprocess.php on line 2
Notice: Undefined variable: title in e:\Inetpub\wwwroot\phptest\calprocess.php on line 3
Here's the PHP for those lines:
<?php
$desctext = stripslashes($desc);
$title2 = $title;
Here's the HTML from the page it's pulling it from:
<form method="post" action="calprocess.php" name="form1" class="body">
<table width="315" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="120" class="body">EVENT TITLE:</td>
<td width="195"><input name="title" type="text" size="25"></td>
</tr>
<td><textarea name="desc" rows="4" id="textarea"></textarea></td>
</tr>
It all seems pretty straightforward. I don't understand why I get the errors.
Thanks for any help!!
Liam