Jump to content

send data in a form using div !


lofaifa

Recommended Posts

..and its not working (i replaced <textarea> with <div> to apply some html tags inside it )

 

and this is my form :

 

<form action="proc.php" method="post">
<div id="text" name="question_text" class="text" contenteditable="true"></div>
</form>

 

but when i submit some text the $_POST['question_text'] is not set !

 

Link to comment
Share on other sites

textarea can send data also ..

 

anyway im having the problem of making changes inside textarea .. i couldnt do that cuz textarea considers everything a test

 

so if i write something like this

 

<textarea><b>test</b></texterea>

 

it wont work , it will display <b>test</b>

 

soo i need something like textarea that let html tags work !

 

any advice ?

Link to comment
Share on other sites

textarea can send data also ..

 

anyway im having the problem of making changes inside textarea .. i couldnt do that cuz textarea considers everything a test

 

so if i write something like this

 

<textarea><b>test</b></texterea>

 

it wont work , it will display <b>test</b>

 

soo i need something like textarea that let html tags work !

 

any advice ?

 

this is because a textarea accepts text as plain/text instead of html.

There are ways to convert the text in a textarea to html, what exactly are you trying to do?

Link to comment
Share on other sites

its related to javascript in fact .

 

i want two button .. if you click on one the direction of writing inside the textarea changes .. and when u finished with writing in the current direction and u wanna go back to the normal direction u click and u go back

 

<textarea dir="rtl"></textarea>

 

is the normal

 

and when u click a div tag with direction "ltr" or something appears to do the job . when u click the other button u get out of that tag to the normal case .

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.