Forum Moderators: coopster
What I want to know:
Specific PHP/SQL field TYPE (e.g., varchar, char, longblob, longtext, mediumblob, mediumtext, etc.) used for collecting open-ended (but filtered) comments from website PHP form to MySQL database and mail($var, $var...) function retrieval.
Please help? More advanced guidance and instruction (perhaps by telephone/web-conferencing, etc.) would be greatly appreciated, but I understand if that might be a breech of any usage policies or agreements for the forums.
Thank you for your expert support!
Regards,
Matthew
Capturing long strings of data are most often done by using the <textarea> element in an html form. You use a PHP script to handle the POST data when the user submits the form. PHP is also the tool for editing and filtering the data. Once all looks well you once again use PHP to write the information to a database table that you have previously created. The column type typically used to store that data is text or blob.
I very much appreciate you taking the time to explain in brief the uses of PHP. As was probably quite obvious with my original post, I'm entirely unfamiliar with PHP and html forms, but I'm learning more everyday. With the instruction you have provided, I'm well on my way to better acquainting myself with them. My question for you now is: What's the difference between the column type <medtext/longtext> and <medblob/longblob>? Are there character limitations associated specifically with each? And what about collation? Would you be so kind as to respond again with answers to these questions, or perhaps you could direct me to a pertinent and useful online resource or published text on the subject that you think is accessible enough for a beginner to grasp hold of and understand? Thank you again for your assistance. Be well!
Data Types [dev.mysql.com]
from that page ...
String Types [dev.mysql.com]
Collation and Character Set Support [dev.mysql.com]