Gayner Posted August 31, 2009 Share Posted August 31, 2009 topic title says it bcz i just want to use $_POST['mbuy'] whenever i click something i dont want to haveĀ multiple forms? possible? Link to comment https://forums.phpfreaks.com/topic/172518-do-we-have-to-have-a-form-to-make-a-input-typebutton-submit/ Share on other sites More sharing options...
prasanthmj Posted August 31, 2009 Share Posted August 31, 2009 The browser has to post the mbuy to some script. Where will you mention that 'action' URL if there is no <form>? Link to comment https://forums.phpfreaks.com/topic/172518-do-we-have-to-have-a-form-to-make-a-input-typebutton-submit/#findComment-909632 Share on other sites More sharing options...
PFMaBiSmAd Posted August 31, 2009 Share Posted August 31, 2009 You would need to use a button in a URL and use a GET variable to provide a value to your form processing code - <a href="form_processing_code.php?mbuy=some value"><button type="button">Click Me!</button></a> Link to comment https://forums.phpfreaks.com/topic/172518-do-we-have-to-have-a-form-to-make-a-input-typebutton-submit/#findComment-909641 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.