sillysillysilly Posted September 18, 2009 Share Posted September 18, 2009 I have a script that looks to the database and collects some variable that will be echoed back inside the form field so they can update it. I had this running on another server just fine - it would give the detail inside the form field. When I installed the latest and greatest xampp on my own computer is when it started putting <? echo $detail ?> in the form field instead of what is in the variable. The HTML is right; its probably something in the php.ini settings but I don't know what it would be. Any ideas? <tr><td><label>First Name </label><input name="firstname" type="text" size="16" maxlength="16" value="<? echo $firstname; ?>"/> Also where can I get the wysiwig that is shown in the posting windows here, those are cool. Link to comment https://forums.phpfreaks.com/topic/174755-solved-showing-up-in-form-input-field/ Share on other sites More sharing options...
zq29 Posted September 18, 2009 Share Posted September 18, 2009 It is possible that you have short tags disabled in your php.ini - Replace the <? with <?php and try again. Link to comment https://forums.phpfreaks.com/topic/174755-solved-showing-up-in-form-input-field/#findComment-920959 Share on other sites More sharing options...
sillysillysilly Posted September 18, 2009 Author Share Posted September 18, 2009 Ah that got it. I feel like such an idiot. I am a bit of a newbie hack to this stuff so forums like this are a real god send. Thanks. Link to comment https://forums.phpfreaks.com/topic/174755-solved-showing-up-in-form-input-field/#findComment-920965 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.