Hi I asked people in the php forum they said that it was a javascript job, i would like to make a script in which the user selects an area of any website they enter and the script returns the html for that area. any help would be greatly appreciated. Thanks
The solution pointed by thinlight do not work. With that script you can get the "user selection" (not the html code of selection) of a page on same site, but you can't with a page from a different site. IMO you can not do that on client side (javascript) because browsers by default are not allowed to do cross domain scripting. That task could be done on your server side, there you'll need to load the external page and search for start and end of user selection (sent to your server by your script). But is not a trivial task.
Mozilla Firefox did it. in Firefox you can select some portion and get the code of that part only. i hope mozilla plugin creators could answer you. best wishes.