i want to assign content of one div to another div ..lets say div 1 to div 2 just like in twitter when you type something and press "Tweet" a div is created and has the content of textbox ..
how can i implement in php

Recommended Answers

All 2 Replies

Sounds more like Javascript to me.

i want to assign content of one div to another div ..lets say div 1 to div 2 just like in twitter when you type something and press "Tweet" a div is created and has the content of textbox ..
how can i implement in php

It's as pritaeas said. Any time you're updating something on a page without refreshing (which is what it seems you want to do), you're dealing with JavaScript. PHP is a server-side language, and thus requires either a page reload or the use of AJAX to send a request to the server without refreshing the page.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.