471,887 Members | 1,449 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,887 software developers and data experts.

Formattable Textbox for Entry into MySQL database

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.
Apr 29 '09 #1
3 2003
392 Expert 256MB
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
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
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 YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.