Guest Posted May 28, 2007 Share Posted May 28, 2007 Hi, I've tried a few searches but never read anything about it. This is the default code for the text box for the message on the Tell A Friend page... <tr> <td align="right" valign="top"><strong>{TXT_MESSAGE}</strong></td> <td><textarea name="message" cols="30" rows="5" class="textbox">{VAL_MESSAGE}</textarea></td> </tr> What I want to achieve is something where that is hidden so the user can't change the message and only I can set the message (through lang.inc.php) that gets sent. Any ideas? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Robsta Posted May 28, 2007 Share Posted May 28, 2007 This is one workaround: <td><textarea name="message" cols="30" rows="5" class="textbox" style="display:none;">{VAL_MESSAGE}</textarea>{VAL_MESSAGE}</td> Set the form box to not display, and add the message placeholder to outside the forum textarea. Having the text area still there means that the information is sent, also having it outside means it gets displayed as normal page content, uneditable. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 28, 2007 Share Posted May 28, 2007 Thanks Robsta. I shall try that and see what happens Edit - seems to do the job Although if anyone knows a solution that would make the message 'invisible/hidden' without changing the font colour to white I'd be pleased to hear :huh: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.