Jump to content

PHP and <textarea>


mccorvic

Recommended Posts

I've come across two problems with trying to make a form with textarea.

 

1. For whatever reason if the form is POST I'll get a MySQL query errory because of text area, but it seems to work fine with a GET form. Any ideas why or does it not really matter in this case and I should just use GET?

 

2. With text area any time anyone inserts a ' or any kind of html tag (this is a very low tech form) it messes up the php string and gets an error. I was hoping to make this form friendly to those without PHP skills seeing as I'm still a n00blet myself. Suggestions?

 

3. Or maybe I shouldn't be using textarea at all? Is there another simple tag i should be using? I didn't want to use input field since that seems to give me very limited space to type.

 

Thanks

Edited by mccorvic
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...