dc_jt Posted May 24, 2007 Share Posted May 24, 2007 Hi I have the following code which works with IE but not in Firefox: <!-- function changestudent(){ document.getElementById('status').value = 'remove_image'; add_edit.submit(); } --> It is linked to a remove image button which when clicked submits and saves the form and then removes the image. It works in IE but not firefox, anyone know? Thanks Link to comment https://forums.phpfreaks.com/topic/52827-submitting-a-form-in-firefox/ Share on other sites More sharing options...
nogray Posted May 24, 2007 Share Posted May 24, 2007 try to add document infront of your add_edit document.add_edit.submit(); or If the form have an id <form name="add_edit" id="add_edit" ... you can use document.getElementById() document.getElementById('add_edit').submit(); Link to comment https://forums.phpfreaks.com/topic/52827-submitting-a-form-in-firefox/#findComment-260911 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.