how to copy and paste from a form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
swetha
Forum Commoner
Posts: 88
Joined: Wed Sep 10, 2008 11:00 pm

how to copy and paste from a form

Post by swetha »

Code: Select all

 
<body>
<div align="center">
<textarea name="txt1" rows="2" cols="20" ></textarea><br/><br/>
<input type="submit" name="submit1" value="select all"> 
<input type="submit" name="submit2" value="copy"></div>
</body>
</html>
 
assume i have the above code. i need to select all the contents within the (dynamic)textarea when i click on "select all" button.the command "ctrl + c" needs to be executed when i click on "copy" button.can this be done through php or can it be done only through javascript?any help is appreciated.
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: how to copy and paste from a form

Post by papa »

User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Re: how to copy and paste from a form

Post by aceconcepts »

Post Reply