I'm at my wits' end.
I'm opening a form element in a Woody PHP snippet and inserting some conditional logic (because PayPal "Buy Now" buttons don't support discount codes, but that's besides the point).
So I open the form element in the Woody snippet and include the conditional logic.
I insert the snippet into the page with a shortcode.
Handwritten HTML on the page itself continues with the rest of the form, including the closing tag for the form.
While trying to understand why the submit button did nothing, I discovered the closing tag for the form was in the Woody snippet.
Way sooner than it should appear, obviously. This essentially shuts down the form before any of the form inputs, including the submit input.
In other words, the snippet is opening AND closing the form element, but I only want it to OPEN the form.
I deleted the unwanted </form> tag and updated the snippet. The closing tag for the form immediately reappeared.
Again and again!
I copied and pasted the code I want into a new snippet, and the </form> tag again appeared and I can't for the life of me figure out how to prevent Woody from "helpfully" closing the form when I don't want it to.
Any thoughts or suggestions?
Thanks in advance.
I'm opening a form element in a Woody PHP snippet and inserting some conditional logic (because PayPal "Buy Now" buttons don't support discount codes, but that's besides the point).
So I open the form element in the Woody snippet and include the conditional logic.
I insert the snippet into the page with a shortcode.
Handwritten HTML on the page itself continues with the rest of the form, including the closing tag for the form.
While trying to understand why the submit button did nothing, I discovered the closing tag for the form was in the Woody snippet.
Way sooner than it should appear, obviously. This essentially shuts down the form before any of the form inputs, including the submit input.
In other words, the snippet is opening AND closing the form element, but I only want it to OPEN the form.
I deleted the unwanted </form> tag and updated the snippet. The closing tag for the form immediately reappeared.
Again and again!
I copied and pasted the code I want into a new snippet, and the </form> tag again appeared and I can't for the life of me figure out how to prevent Woody from "helpfully" closing the form when I don't want it to.
Any thoughts or suggestions?
Thanks in advance.