Alidad Posted November 10, 2007 Share Posted November 10, 2007 Hi, I need help with button, when person click button, is automatic create lay out <div></div> in php, how do i write that in php code to create layout button like that<div></did>! please help me thanks. AM Quote Link to comment https://forums.phpfreaks.com/topic/76695-create-button/ Share on other sites More sharing options...
pocobueno1388 Posted November 10, 2007 Share Posted November 10, 2007 Huh? Explain a little more/better. Quote Link to comment https://forums.phpfreaks.com/topic/76695-create-button/#findComment-388279 Share on other sites More sharing options...
Alidad Posted November 10, 2007 Author Share Posted November 10, 2007 sorry for not clear, let say that if you have html editor for php, and you want to have lay out features, but the way to have that is to click button then it will automatic create lay out <div></div> before continue to work on lay out after created layout by click button. how to write that code to allow person click button to create layout! i hope is clear what I'm trying to say! AM Quote Link to comment https://forums.phpfreaks.com/topic/76695-create-button/#findComment-388284 Share on other sites More sharing options...
roopurt18 Posted November 10, 2007 Share Posted November 10, 2007 Designing this type of application can quickly become cumbersome in PHP. You'd be better off looking into Javascript and the DOM. Quote Link to comment https://forums.phpfreaks.com/topic/76695-create-button/#findComment-388346 Share on other sites More sharing options...
realneo Posted June 3, 2011 Share Posted June 3, 2011 Well, its easy when working with databases. ------------------------------------------------------ <?php $new_div=""; if(isset($_POST['submit'])){ $new_div = echo"<div> everything that it can hold</div>"; } ?> if working with databases <?php while($row=mysql_fetch_array($query){ echo"<div> Everything in it </div>"; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/76695-create-button/#findComment-1224624 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.