469,325 Members | 1,651 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,325 developers. It's quick & easy.

Formattable Textbox for Entry into MySQL database

ifedi
60
Hi anyone,
I'll put it straight..
I need to use a textbox SUCH AS THIS ONE INTO WHICH I TYPE AS I WRITE, such that formatted text can be sent into a MYSQL text type field. On another page, I should be able to query out this database field into a different textbox, retaining any formatting initially applied in the first textbox..
Thanks in advance.
Ifedi.
Apr 29 '09 #1
3 1962
pronerd
392 Expert 256MB
@ifedi
This is not clear. MySQL is a database not a form field. So there is no field type of MySQL. Also since it sounds like you want to be able to do database access you will need a server side technology like ASP, JSP, PHP, etc. You can not access a database with JavaScript by it self.
Apr 29 '09 #2
acoder
16,027 Expert Mod 8TB
Is the text box a WYSIWYG one or a simple one with [b], [u], [code], etc. tags?

If it's a simple one, you can just take the text like a normal text area and insert into the database using server-side code. Do you want to do this without unloading the page?
Apr 30 '09 #3
Ciary
247 Expert 100+
if you do, use an ajax request and POST (otherwise the url is going to be too long) the text. on the loaded page you execute an sqlquery in which you insert the text in your mysql. when you dont mind the page reloads, you can simply post the data and put it in your mysql on page load.
Apr 30 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by skeeterbug | last post: by
12 posts views Thread by Jerry Weinstein | last post: by
8 posts views Thread by Shawn | last post: by
3 posts views Thread by millw0rm | last post: by
1 post views Thread by Developer | last post: by
reply views Thread by Allan Kim Jensen | last post: by
2 posts views Thread by Greg | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.