Jump to content


Photo

Form Results - getting a wierd setting in the form field


  • Please log in to reply
1 reply to this topic

#1 kenwvs

kenwvs
  • Members
  • PipPipPip
  • Advanced Member
  • 194 posts

Posted 14 July 2006 - 03:27 PM

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



#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 14 July 2006 - 03:30 PM

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 short_open_tag = Off and change Off to On. Save the php.ini and restart WAMP.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users