GregL83 Posted May 27, 2008 Share Posted May 27, 2008 What does it mean when php is written like this in a form? file "test.php" <form method="post" action="test.php" <input name="a" value=" <?= $valueA ?> " /> </form> Thanks! Quote Link to comment Share on other sites More sharing options...
jonsjava Posted May 27, 2008 Share Posted May 27, 2008 pretty much the same as typing <form method="post" action="test.php"> <input name="a" value="<?php print $valueA;?>"/> </form> Quote Link to comment Share on other sites More sharing options...
GregL83 Posted May 27, 2008 Author Share Posted May 27, 2008 does your server or php need to be setup specially? I get the code <?= $valueA ?> printed in the input field... Quote Link to comment Share on other sites More sharing options...
Psycho Posted May 27, 2008 Share Posted May 27, 2008 The <? ?> are the "short" tag version of <?php ?> and yes, there is a setting that needs to be enabled to support the short tags. It's best to just always use the full tags. Quote Link to comment 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.