Firefox PHP

"Edit Post" hack

Posted by Gertjan 
Re:
May 20, 2002 03:04PM
I can't get the edit hack to work, should the Submit name not be "edit" to call the edit script so that it performs the update ?

the following lines from the bottom of the edit.php file:

cheers, Brian



<tr>

<td <?php echo bgcolor($ForumTableBodyColor1); ?> colspan=2 width="100%" nowrap align="left"><table cellpadding="5" cellspacing="0" border="0"><tr><td align="CENTER" valign="TOP"><font face="courier"><textarea class="PhorumBodyArea" name="body" cols="45" rows="20" wrap="VIRTUAL"><?php echo htmlspecialchars($mtext["body"]); ?></textarea></font></td></tr></table></td>
</tr>
</td>
</tr>
<tr>
<td <?php echo bgcolor($ForumTableBodyColor1); ?> colspan="2" align="RIGHT">
<input type="Submit" name="post" value=" <?php echo $lFormUpdate;?> ">&nbsp;<br><img src="images/trans.gif" width=3 height=3 border=0></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<?php

include phorum_get_file_name("footer");
?>
kickass this works perfect on 3.3.2c without any changes to the code (that is of course if you haven't made any previous changes in read.php)

thank you much Gertjan

cheerz
Sorry, you do not have permission to post/reply in this forum.