I have a HTML form which when submitted sends an email with all the questions and answers using PHP.
I need to break the form down as it’s too long. I need only one submit button and for the form to load only once. This obviously means that I need to use JavaScript show/hides.
I’ve tried using many different types but I can’t get them to work properly with my form. It is quite large and seems to be very complicated to get to work with show/hide 🙁
I’ve used show/hide divs before but not tables.
Anyone have anything that can help?
What I’d like is,
- A next button that takes you to another section of the form.
- Whilst on the next section you can return back to the previous section or go on to another section again.
- The last section to contain previous or submit.
Thanks in advance.
That’s quite a common request. Here is one way
divs with easy to manageids and only the first one visible.
.
Edit
If you want to use a table layout, break the for into more tables (one for each page) and give the
ids to the tables instead of thedivs