Jump to content

[SOLVED] Multiple Textareas into one mysql prep splitted by an "enter"


Rub

Recommended Posts

I don't know how I do this..

So.. I got 3 textarea's for the content of the post

How do I get these 3 textarea's into 1 output for the database => content?

 

This is what I have been trying.. What is the right way to do it?

$title = mysql_prep($_POST['title']);
$contentArray = array("$_POST['textarea2']", "$_POST['textarea3']", "$_POST['textarea4']");
$contentEnter = join("/n", $contentArray);
$content = mysql_prep($contentEnter);

$query = "INSERT INTO posts (title, content) VALUES ('{$title}', '{$content}')"

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.