php inside HTML via shortcode? [closed]

I think your code should be changed to

<input type="hidden" name="item_name" value=<?php echo "'" . get_the_title( get_the_ID() ) . "'"; ?>>
<input type="hidden" name="item_number" value=<?php echo "'" . get_the_ID() . "'"; ?>>

Based off the first input where you have ” ‘ ” and the second one you’re using ” ” ” will just return the a string with “. get_the_ID() .”