Having problem using PHP with webflow form classes

Hello ! I am trying to set up a sign in/sign up form on my website. I know that webflow form backend can only be used inside of webflow hosting plan. I just wanted to use the webflow form design, and implement my own backend with php by exporting my site. The problem is : The class w-form/w-input seems to interfere with my PHP code and im clueless of why that is. When i remove both theses classes, my form is ugly, but works.

Anyone had a similar problem or have a solution for me.

Thank you for your answers and your time.

William

I don’t export often, but it seems possible that webflow.js might still have some form handling code in it even though it has nowhere to send the submissions ( with no active site hosting account ).

I’d investigate with devtools to see if WF has code attached to the form submit event.

If so, you should be able to remove those classes without really affecting your styling? At least your own styles will be on custom classes, not on Webflow-internal classes.

If you’re seeing a definite difference, you can just use devtools to identify what CSS Webflow is applying through those classes and duplicate it in your own styling.

1 Like

@memetican
I havent thought of checking the webflow.js… I’ll give it a try and update this post if it worked.

If it doesn’t works, i will have no choice, like you said, to make my own styling. It’s just a mess to try to implement your own styling in the middle of an exported webflow project.

Thank you for the leads, your answer means a lot :muscle:

If there is styling on those classes, you can just add it in the designer and re-export. But the main point of styling I’m aware of is the Webflow.js behavior around hiding and showing the form’s success / error messages on submit. Ideally that’s the only part you’d re-implement for your own submission handler.

1 Like

@memetican
So you were right : By removing ONLY the w-form class and not the w-input, My styling stays and my php go through as expected. I tried removing some part of the webflow.js altering form behaviors, and it didnt do the trick for me (Probably a lack of js skill on my part lol) but the solution was actually simpler than that by just removing one class of a div.

The problem is solved, thanks a lot again for your time and your webflow skills.

William

1 Like