Generated PHP appears to be incorrect
Posted: Thu May 14, 2020 5:13 pm
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'); ?>">
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'); ?>">