Greetings,
Have a perplexing situation. I recently updated to the latest 15.4.1 and one of my form started failing on a generated php statement.
Failing Form HTML:
<input type="hidden" name="datesent" value="<?php echo date("m/d/Y"); ?>">
Generates following incorrect PHP:
<input type="hidden" name="datesent" value="<?php echo date(" <?>="" "="">
This is working - updated a couple of weeks ago.
Form HTML:
<input type="hidden" name="datesent" value="<?php echo date("m/d/Y"); ?>">
Generates following correct PHP:
<input type="hidden" name="datesent" value="<?php echo date("m/d/Y"); ?>">
I ended up changing the statement as follows to get it to work:
<input type="hidden" name="datesent" value="<?php echo date('m/d/Y'); ?>">
Generated PHP appears to be incorrect
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/forms.html
http://www.wysiwygwebbuilder.com/form_wizard.html
Frequently Asked Questions about Forms
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/forms.html
http://www.wysiwygwebbuilder.com/form_wizard.html
Frequently Asked Questions about Forms
Re: Generated PHP appears to be incorrect
Please make sure all HTML formatting (in Tools -> Options -> HTML) is set to default.
Re: Generated PHP appears to be incorrect
I have not touch that but this is what it shows:
HTML ->Formatting -> Beautify
CSS -> Formatting -> Default
JavaScript->Formatting -> Default
Changed HTML Formatting to Default and it fixes the issue.
Thanks
HTML ->Formatting -> Beautify
CSS -> Formatting -> Default
JavaScript->Formatting -> Default
Changed HTML Formatting to Default and it fixes the issue.
Thanks