envexlabs Posted October 4, 2007 Share Posted October 4, 2007 Hey, I have a textbox, where a user can write out a newsletter type deal. I also have a list of products, that when the user click on it, it grabs all the info from the database and neatly generates html for the product. I can deal with grabbing from the database and formatting, but i need some help with on click insert into the text box. Anyone have an idea? Thanks, envexlabs Quote Link to comment https://forums.phpfreaks.com/topic/71854-php-insert-into-a-textbox-on-click/ Share on other sites More sharing options...
rondog Posted October 4, 2007 Share Posted October 4, 2007 I dont understand. You want to insert a value from the database into a text field? Quote Link to comment https://forums.phpfreaks.com/topic/71854-php-insert-into-a-textbox-on-click/#findComment-361917 Share on other sites More sharing options...
envexlabs Posted October 4, 2007 Author Share Posted October 4, 2007 Hey, Pretty much yeah. I want the user to do this: <textbox> "I'm writing a newsletter cause i'm awesome" User clicks a product button, and the product is added. "I'm continuing to write my newsletter!" </textbox> If that makes sense Quote Link to comment https://forums.phpfreaks.com/topic/71854-php-insert-into-a-textbox-on-click/#findComment-361920 Share on other sites More sharing options...
rondog Posted October 4, 2007 Share Posted October 4, 2007 still a little cloudy, is this up where I can test? If you want to add a value to a text field just do something like <textarea><?php echo $aValue; ?></textarea> Quote Link to comment https://forums.phpfreaks.com/topic/71854-php-insert-into-a-textbox-on-click/#findComment-361925 Share on other sites More sharing options...
envexlabs Posted October 4, 2007 Author Share Posted October 4, 2007 That would overwrite whatever the user has previously written though. It's kinda like a WYSIWYG editor, but an extremely simple version. Quote Link to comment https://forums.phpfreaks.com/topic/71854-php-insert-into-a-textbox-on-click/#findComment-361928 Share on other sites More sharing options...
rondog Posted October 4, 2007 Share Posted October 4, 2007 ok I understand what you are saying then. Ive seen on some forums it adds images into a text area rather than just an tag. I dont think I can help you then sorry ??? Quote Link to comment https://forums.phpfreaks.com/topic/71854-php-insert-into-a-textbox-on-click/#findComment-361939 Share on other sites More sharing options...
envexlabs Posted October 4, 2007 Author Share Posted October 4, 2007 Thanks for trying I guess i'll keep searching, or wait for someone to help! envex Quote Link to comment https://forums.phpfreaks.com/topic/71854-php-insert-into-a-textbox-on-click/#findComment-361944 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.