nashsaint Posted May 19, 2008 Share Posted May 19, 2008 Hi, Is there a way to allow users to include jpg attachment to textarea field? It's more like a message forum area where user can capitalize, set formats and attach files and users who likes to view it can view the jpg as well. Any solution would be great. Quote Link to comment https://forums.phpfreaks.com/topic/106361-to-include-jpg-attachment/ Share on other sites More sharing options...
rhodesa Posted May 19, 2008 Share Posted May 19, 2008 You will have to use a WYSIWYG tool. Quote Link to comment https://forums.phpfreaks.com/topic/106361-to-include-jpg-attachment/#findComment-545191 Share on other sites More sharing options...
nashsaint Posted May 19, 2008 Author Share Posted May 19, 2008 maybe you misunderstood me rhodesa. Here's my php code: <tr> <td colspan="2" align="center"><textarea name="comments" cols="35" rows="10></textarea></td> </tr> Now, I want users to include pictures inside the comments textarea but I don't know how to code it. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/106361-to-include-jpg-attachment/#findComment-545207 Share on other sites More sharing options...
wildteen88 Posted May 19, 2008 Share Posted May 19, 2008 Do you mean you want to implement tags? and then when you submit the form it converts the image tag to an html image tag? if so search google for bbcode tutorials. Quote Link to comment https://forums.phpfreaks.com/topic/106361-to-include-jpg-attachment/#findComment-545208 Share on other sites More sharing options...
rhodesa Posted May 19, 2008 Share Posted May 19, 2008 Without a WYSIWYG tool, you will either need to use BBcode (as suggested) or have the user type the HTML code into the textarea. ...I guess you could come up with your own tags, but I would use BBcode before you do that Quote Link to comment https://forums.phpfreaks.com/topic/106361-to-include-jpg-attachment/#findComment-545216 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.