kenwvs Posted July 14, 2006 Share Posted July 14, 2006 When i load my script up on my local server (WAMP5) setup, I am getting the following item in all of my forms (where the results normally go), and am wondering if this is normal or I have an error along the way.They all show <?= $quantity_available ?>, where the actual wording is the same as whatever is in the value field, in the form.<td> <font size="2"> <td> <input type="text" name="quantity_available" size="3" value="<?= $quantity_available ?>"> </td></font>Is this normal or have I got something not quite right? If this is normal, would it appear normally when loaded onto the normal server, as this appears wherever you would normally fill in the blanks.Thanks,Ken Quote Link to comment https://forums.phpfreaks.com/topic/14593-form-results-getting-a-wierd-setting-in-the-form-field/ Share on other sites More sharing options...
wildteen88 Posted July 14, 2006 Share Posted July 14, 2006 If you are getting <?= $quantity_available ?> in your input fields. Then PHP has the short tags directive turned off. I would recommend you to not use short tags but use the full tags instead, so instead of <?= use <?php echoBut if you want to use <?= then open you php.ini and find [b]short_open_tag = Off[/b] and change Off to On. Save the php.ini and restart WAMP. Quote Link to comment https://forums.phpfreaks.com/topic/14593-form-results-getting-a-wierd-setting-in-the-form-field/#findComment-57960 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.