close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Losing content from text area fields when updating profile

Thread began 1/25/2015 9:07 am by LWag48648773 | Last modified 1/30/2015 10:07 am by Jason Byrnes | 1029 views | 3 replies |

LWag48648773

Losing content from text area fields when updating profile

The member-users of the website I created are losing the entire content of some of the fields in my update form. It only happens with the text area fields, not text fields. I'm not sure if this has been happening all along or if it just started. The website is over 2 yrs. old.

I've attached the code from Members_update.php.

Attached Files
update-page-code.docx
Sign in to reply to this post

Jason ByrnesWebAssist

In the future, please don't copy the php code to a word file, instead attach the original php file itself. It's more difficulty read php code in a word document than in DW.



any way, you text area elements are not formatted correctly.

text area elements do not use a value attribute. the format for a text area:
<textarea name="[name]" id="[id]">value here</textarea>

your text areas are using a value tribute rather than having the value between the opening and closing textarea tags:

<textarea name="specialties" cols="45" rows="3" class="formTextfield_Medium" id="specialties" tabindex="16" type="textarea" value="<?php echo((isset($_GET["invalid"])?ValidatedField("Membersupdate","specialties"):"".$row_WADAMembers["specialties"]."")); ?>">
</textarea>



you also have a type attribute that is not needed

change that to:

<textarea name="specialties" cols="45" rows="3" class="formTextfield_Medium" id="specialties" tabindex="16">
<?php echo((isset($_GET["invalid"])?ValidatedField("Membersupdate","specialties"):"".$row_WADAMembers["specialties"]."")); ?>
</textarea>
Sign in to reply to this post

LWag48648773

Thank you very much Jason! That works. I don't know how I got that messed up. I have it correct in my other forms. I was probably trying to 'fix' something at some point which usually gets me in trouble. :)

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...