I have an old hack that stopped working with vb 3.5.
At one point we are asking the user to update the condition of a local mountain bike trail. The call is:
Code:
eval('print_output("' . fetch_template('edittrail') . '");');
The template is:
Code:
<html>
<head>
<title>$bbtitle - Update of trail $namit</title>
$headinclude
</head>
<body>
$header
<table cellpadding="2" cellspacing="0" border="0" align="center">
<tr>
<td width="100%">$navbar</td>
</tr>
</table>
<br>
<form $enctype name="vbform" action="trail.php" method="post" onSubmit="return validate(this)">
<input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="action" value="updatetrail">
<input type="hidden" name="trailid" value="$trailid">
<table cellspacing="0" border="0" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" border="0" width="100%">
<tr>
<td class="tcat" colspan="2"><normalfont class="tcat"><b>$namit $trailinfo[name]</b></normalfont></td>
</tr>
$logincode
<tr>
<td class="alt2" valign="top" nowrap><normalfont><b>$othercond</b></normalfont></td>
<td class="alt2" valign="top" nowrap>
<select name="generalid">
<option value="0">Condition?</option>
<option value="1">$drop1</option>
<option value="2">$drop2</option>
<option value="3">$drop3</option>
<option value="4">$drop4</option>
<option value="5">$drop5</option>
</select>
<smallfont><b>(Last $othercond: $lastcond[descript])</b></smallfont>
</td>
</tr>
<tr>
<td class="alt2" valign="top" nowrap><normalfont><b>Link</b></normalfont></td>
<td class="alt2" valign="top" nowrap>
<input type="hidden" name="link" value="$trailinfo[links]">
</td>
</tr>
<tr>
<td class="alt2" valign="top" nowrap><normalfont><b>Time & Date Ridden</d></normalfont></td>
<td class="alt2" valign="top" nowrap>
<input type="text" name="date" value="$trailinfo[dateline]" size="10">
</td></tr>
<tr>
<td class="alt1" valign="top" nowrap><normalfont><b>$conditionname to edit:</b><BR><BR>Limit 400 characters</normalfont>
</td>
<td class="alt1">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td>
<textarea name="message" rows="6" cols="40" wrap="virtual" tabindex="2"> </textarea>
<br>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td></tr></table>
<br>
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td align="center"><normalfont>
<input type="submit" class="bginput" name="submit" accesskey="s" value="Save Changes" tabindex="3">
<input type="reset" class="bginput" value="Reset Message" tabindex="4">
</normalfont></td>
</tr>
</table>
</form>
$footer
</body>
</html>
Immediate after the template there is code that says:
Code:
if ($message=="") {
with an error that says please go back and enter a description of the trail conditions.
It used to work just fine. Now even with text entered in the message field I get the message to go back and enter information in the description.
It appears that I am not getting the form information that is passed back from the template.
Am I missing something?