March 19, 201313 yr Hi,I have a problem with my site:articles4less. com/orderIn order to see what I'm talking about, please fill in this page an email address + general guidelines for all articles + subject+words for one article, then click 'continue', and then click 'edit' in the Shopping Cart.You will see that all the details are there, except of the 'General Guidelines for All Articles' field (textarea). Why is that? Here are the code of this field: <textarea id="comments" name="comments" value="<?php if (isset($articleDetails['comments']) && $articleDetails['comments'] != NULL) echo $articleDetails['comments']; ?>"/></textarea> For comparison, here is the code of the email field: <input type="text" id="email" name="email" class="mywidth" value="<?php if (isset($articleDetails['email']) && $articleDetails['email'] != NULL) echo $articleDetails['email']; ?>"> Thanks,Steve
March 19, 201313 yr Maybe the forward slash is causing the problem... (last line; see red)...>"/></textarea> EDIT: On a closer inspection, shouldn't your PHP code be between your <textarea> tags and not part of the value attribute? But maybe not... I should go and see what you're trying to achieve but you scared me when you mentioned filling in a form... Edited March 19, 201313 yr by Alluziion
March 19, 201313 yr Alluzion is right, there is no value attribute for a <textarea>. You need to encapsulate the comments inside the tags, like this: <textarea id="comments" name="comments"><?php if (isset($articleDetails['comments']) && $articleDetails['comments'] != NULL) echo $articleDetails['comments'];?></textarea>
Create an account or sign in to comment