Hidden field php rendering extra characters after ;?

Issues related to forms.
Post Reply
User avatar
Magical
 
 
Posts: 111
Joined: Thu Dec 14, 2017 5:08 pm
Contact:

Hidden field php rendering extra characters after ;?

Post 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") ;?>">
User avatar
Pablo
 
Posts: 23402
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Hidden field php rendering extra characters after ;?

Post by Pablo »

Maybe you have enabled HTML formatting in Tools -> Options -> HTML?
User avatar
Magical
 
 
Posts: 111
Joined: Thu Dec 14, 2017 5:08 pm
Contact:

Re: Hidden field php rendering extra characters after ;?

Post by Magical »

Its turned off - I also changed the HTML Formatting to default. Same issue.
User avatar
Pablo
 
Posts: 23402
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Hidden field php rendering extra characters after ;?

Post 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
User avatar
Magical
 
 
Posts: 111
Joined: Thu Dec 14, 2017 5:08 pm
Contact:

Re: Hidden field php rendering extra characters after ;?

Post 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
Post Reply