jd2007 Posted July 26, 2007 Share Posted July 26, 2007 how can i use php to take a text which is highlighted on a web page as a string ? Link to comment https://forums.phpfreaks.com/topic/61831-how-can-i-use-php-to-take-a-text-which-is-highlighted-on-a-web-page-as-a-string/ Share on other sites More sharing options...
jd2007 Posted July 26, 2007 Author Share Posted July 26, 2007 for e.g. i want to use in a textarea. its something like this forum. when i type a text, i highlight it and i click the B button, it turns bold...i want a same concept like that...give me an idea/hint... Link to comment https://forums.phpfreaks.com/topic/61831-how-can-i-use-php-to-take-a-text-which-is-highlighted-on-a-web-page-as-a-string/#findComment-307899 Share on other sites More sharing options...
Dragen Posted July 26, 2007 Share Posted July 26, 2007 I haven't checked, but I think that's done using javascript. Link to comment https://forums.phpfreaks.com/topic/61831-how-can-i-use-php-to-take-a-text-which-is-highlighted-on-a-web-page-as-a-string/#findComment-307906 Share on other sites More sharing options...
ViN86 Posted July 26, 2007 Share Posted July 26, 2007 you could insert a blank <textarea> and have the person copy/paste the text they want into it, then submit it. Link to comment https://forums.phpfreaks.com/topic/61831-how-can-i-use-php-to-take-a-text-which-is-highlighted-on-a-web-page-as-a-string/#findComment-307975 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.