malibuxl Posted June 14, 2008 Share Posted June 14, 2008 Here there is codes for two buttons. my question is; how can i have this two buttons funcitons in one button. I mean, when you click to that single button, it will function this two buttons functions at the same time (different parts written with different colors) button1 <input name="amount" value="50" size="5" /> <input type="button" class="fbbutton" value="Buy" onclick="fbjs_sandbox.instances.a2437228683.bootstrap();return fbjs_dom.eventHandler.call([fbjs_dom.get_instance(this,2437228683),function(a2437228683_event) {a2437228683_doSubmit[color=red]('buyForm2266910526', 'http://74.86.142.204/~tearswep/hptsxx/enslave.php?auth=9352c93d2e3589a0c828936ce7ea7028&uid=1098604947&worthBoxID=1288541198&showPic=1&invite=', 'worthBox1288541198')[/color]},2437228683],new fbjs_event(event));return true" /> button2 <input name="amount" value="140" size="5" /> <input type="button" class="fbbutton" value="Buy" onclick="fbjs_sandbox.instances.a2437228683.bootstrap();return fbjs_dom.eventHandler.call([fbjs_dom.get_instance(this,2437228683),function(a2437228683_event) {a2437228683_doSubmit[color=red]('buyForm1967649528', 'http://74.86.142.204/~tearswep/hptsxx/enslave.php?auth=9352c93d2e3589a0c828936ce7ea7028&uid=1100224108&worthBoxID=2123705858&showPic=1&invite=', 'worthBox2123705858')[/color]},2437228683],new fbjs_event(event));return true" /> Link to comment https://forums.phpfreaks.com/topic/110216-about-buttons/ Share on other sites More sharing options...
.josh Posted June 14, 2008 Share Posted June 14, 2008 that's javascript, not php. moving thread... p.s.- please use code tags when posting code. Link to comment https://forums.phpfreaks.com/topic/110216-about-buttons/#findComment-565549 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.