Page 1 of 1

Hidden field php rendering extra characters after ;?

Posted: Mon Nov 09, 2020 5:06 pm
by Magical
In the latest ver 16.04
I have a hidden field datesent on the form where the value is set to <?php echo date("m/d/Y") ;?>
But when I check the HTML it is rendered like this: <input type="hidden" name="datesent" value="<?php echo date(" Y")="" ;?="">">
This is causing the form to fail on load.

In the last ver 15
The same code was rendered like this:
<input type="hidden" name="datesent" value="<?php echo date("m/d/Y") ;?>">

Re: Hidden field php rendering extra characters after ;?

Posted: Mon Nov 09, 2020 6:16 pm
by Pablo
Maybe you have enabled HTML formatting in Tools -> Options -> HTML?

Re: Hidden field php rendering extra characters after ;?

Posted: Mon Nov 09, 2020 7:12 pm
by Magical
Its turned off - I also changed the HTML Formatting to default. Same issue.

Re: Hidden field php rendering extra characters after ;?

Posted: Mon Nov 09, 2020 8:54 pm
by Pablo
I have tried it myself and it works for me.
I still think this is related to one of the formatting settings.
This functionality has not changed in WB16, so it should work the same as in WB15 with same settings.

If you need further assistance, then please share a demo projetc so I can see all your settings.
Related FAQ: https://www.wysiwygwebbuilder.com/forum ... 10&t=82134

Re: Hidden field php rendering extra characters after ;?

Posted: Tue Nov 10, 2020 6:30 pm
by Magical
I opened new project, cut and pasted from the old one. Now it is fine. The old one was 2 years old and had not been updated.
Thanks