Code:
$siteheader
$sitemiddle1
Add Codes ($gamename)
$sitemiddle2
<form $enctype action="addcontent.php?action=code&subaction=main" name="vbform" method="post">
<input type="hidden" name="submit" value="true">
<input type="hidden" name="gid" value="$gid">
<center>Code Title:</center><br>
<input type="text" class="bginput" name="title" value="$title" size="40" maxlength="85" tabindex="1"><br><br>
<center>Code Content:</center><br>
<textarea name="code" rows="7" cols="$textareacols" wrap="virtual" tabindex="2">$message</textarea>
<br><br> <input type="submit" class="bginput" name="submit" value="Submit Code" accesskey="s" tabindex="3">
</form>
$sitefooter
I am using that template to submit the variables in a form. Everything appears correctly.
And I missed the $ and didn't notice it due to lack of parse error.
EDIT:
Code:
if (!$submit) {
eval("dooutput(\"".gettemplate("site_v$v" . "_addcodes_main")."\");");
}
That is when submit s not true.