Jump to content

Form Results - getting a wierd setting in the form field


kenwvs

Recommended Posts

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">&nbsp;
   <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

Link to comment
Share on other sites

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 echo

But 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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.