menios Posted December 6, 2007 Share Posted December 6, 2007 Hi I want my cart to have to buttons for adding and removing.I currently have one form and the submit button is ADD I also use an <a> for my remove.I would like to change it ot a button but how can i add 2 actions to the form so i can change my <a> tag to a <button> tag? Link to comment https://forums.phpfreaks.com/topic/80462-solved-form-with-2-actions/ Share on other sites More sharing options...
menios Posted December 6, 2007 Author Share Posted December 6, 2007 Did it with 2 forms and problem solved . But is there a way to do this with one form? Link to comment https://forums.phpfreaks.com/topic/80462-solved-form-with-2-actions/#findComment-407939 Share on other sites More sharing options...
phpQuestioner Posted December 7, 2007 Share Posted December 7, 2007 just use two buttons and assign them onclick actions; drop the form altogether. <input type="button" value="Add" onclick="action1()"> <input type="button" value="Remove" onclick="action2()"> Link to comment https://forums.phpfreaks.com/topic/80462-solved-form-with-2-actions/#findComment-408596 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.