So I have a 3 page (Page1.php, Page2.php, Page3.php) registration page that is all completed after over 20hrs of coding. But now I’m working on design. My idea is to put all the forms on one page rather than three different pages (Page1.php, Page2.php, Page3.php).
Here’s what the front page looks like:

So when the user clicks the register link I want the form to appear in this region:

I have all the code for the forms so it’s just a simple matter of copy pasting. But what I need to do is implement some sort of slider for the form. So the user clicks register, the form appears on the right, they fill in the first page, then at the bottom right they click continue, and it SLIDES to the next page. Note, when they click continue i don’t want to go to a whole new page, I want to stay on the same page, I just want to display different content.
I know how to do all the onclick (show/hide) stuff in jquery, but I’m wondering if there’s a good plugin I can use to provide a much smoother transition and better expereience. Or if there’s a better way to do it (Pure CSS or something)
Just set all content to
.hide()and.show()thedivwhich has a unique identifier.So you have:
With the jquery code:
Well, that’s basically it. You can do the rest, but this should give you a start in the right direction 🙂
You can make it as complex as you would like. I have some coding who does this with a TabHelper in CakePhp, and with a little bit of javascript I built the same. Because I don’t like the
jQueryUi tab plugin(hint)Also, have a look at
Php Frameworks, you said you spent 20 hours coding for you registration and login.. Well, I did the same withCakePhp, but now my site is finished and is fully maintainable and sends emails on the right time and has a lot of functionality.