ksmatthews Posted August 4, 2009 Share Posted August 4, 2009 Hi There, My client data gathering front end consists of ten tabs - each tab is a form in its own right. The default (highlighted tab) is the first one which happens to be 'Personal details'. PROBLEM; when I submit another tab form for processing I am always returned to tab1 and not to the submitted tab. How can I get around this issue ? This may well be a javascript issue .... THanks, Steven M Link to comment https://forums.phpfreaks.com/topic/168776-tabbed-forms/ Share on other sites More sharing options...
Garethp Posted August 4, 2009 Share Posted August 4, 2009 Give each form it's own ID. Then have <button onclick="document.getElementById('FormID').submit()">Submit</button> Link to comment https://forums.phpfreaks.com/topic/168776-tabbed-forms/#findComment-890453 Share on other sites More sharing options...
ksmatthews Posted August 4, 2009 Author Share Posted August 4, 2009 THanks for the reply Garethp BUT what exactly does that js do ? I added it to my code but it did not seem to do anything ... Steven M Link to comment https://forums.phpfreaks.com/topic/168776-tabbed-forms/#findComment-890470 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.