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! Link to comment https://forums.phpfreaks.com/topic/107515-value/ 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> Link to comment https://forums.phpfreaks.com/topic/107515-value/#findComment-551119 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... Link to comment https://forums.phpfreaks.com/topic/107515-value/#findComment-551126 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. Link to comment https://forums.phpfreaks.com/topic/107515-value/#findComment-551130 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.