answersLogoWhite

0


Best Answer

Use Jquery .hide() and .show() functionality. That way one form can extend up to 4 pages and the final submit button will submit the button while just use the button element on the first 3 pages. A small example

<script type="text/javascript" language="javascript">

function showPart2()

{

$('#next').click(function()

{

$('#page1').hide();

$('#page2').show();

});

}

</script>

<body>

<form>

<div id="page1">

// Code here

<input type="button" name="next" id="next" onclick="javascript:showPart2();"/>

</div>

<div id="page2">

// Code here

// Similar 2 buttons to navigate to Previous & Next and functionality of hide & show

</div>

</form>

</body>

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How to submit the four page in one button using one form in php?
Write your answer...
Submit
Still have questions?
magnify glass
imp