I have a multi-step form that visitors can fill-up even if they're not logged-in. However, a the last part of the form they will be asked to sign-in. When they sign-in, the form also submits and saves to database. I need to add another button for Facebook login/connect that will work the same. I have the Login with Facebook at my top menu using PHP, user can login there and their email, name will be saved to my user table. The submit function for the form is in JS. I tried Ajax but doesn't seem to work.
Here's the clean copy of the code for the form:
Multistepform.html











[TABLE]

[TR="class: popupbox-header"]

[TD]

x
[/TD]

[/TR]


[TR]

[TD]



  • Account Setup
  • Social Profiles
  • Personal Details




First Step

This is step 1

Quantity
*

Condition

New
Used






Second Step

This is step 2

Deadline

*

Notes / Message






Third Step

This is step 3

Location/Area

Metro Manila
Abra

*

Budget