INeedAGig Posted October 22, 2011 Share Posted October 22, 2011 Okay, I am writing a new form validation script that also keeps the data so it can re-populate the fields the user already filled out if there is an error on the page so they do not have to fill it out again. Here is an example of the code I am using in the HTML part of the form input elements. <input name="name" type="text" id="name" value="<?php=$fields['name']?>"> Now, the problem I am getting is the <?php=$fields['name']?> code is being physically displayed within the form field at all times. How would I go about having it not display this line of code in the field? Thanks!! Quote Link to comment https://forums.phpfreaks.com/topic/249577-need-help-with-a-small-problem/ Share on other sites More sharing options...
INeedAGig Posted October 22, 2011 Author Share Posted October 22, 2011 Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/249577-need-help-with-a-small-problem/#findComment-1281294 Share on other sites More sharing options...
PFMaBiSmAd Posted October 22, 2011 Share Posted October 22, 2011 <?php= isn't anything that php understands. Use - <input name="name" type="text" id="name" value="<?php echo $fields['name']; ?>"> Quote Link to comment https://forums.phpfreaks.com/topic/249577-need-help-with-a-small-problem/#findComment-1281295 Share on other sites More sharing options...
INeedAGig Posted October 22, 2011 Author Share Posted October 22, 2011 Thank you for your reply. All is working fine now. Quote Link to comment https://forums.phpfreaks.com/topic/249577-need-help-with-a-small-problem/#findComment-1281296 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.