Skip to content
Advertisement

Tag: textarea

How to get and send values from html to a PHP page?

I created a form for image uploading. This form also includes a tag to add information about the image being uploaded. I need the text from the tag to be sent over to a page “savetofile.php” whenever ‘Upload’ button is clicked. Currently the picture uploading works, the picture information is sent correctly, but I can’t get the text from the

var in textarea from sql?

I tried to make a form with textarea content taken from sql and it’s working well except for 1 thing i want to make… i have some text in the sql like “hi $name, welcome” (for example) and …

Jquery predefined textarea wont clear

Prefilling a textarea with data pulled from a DB. <textarea name=”body” id=”body” rows=”5″ cols=”70″><? echo $body; ?></textarea> I have a clear button to make it easier for the user to wipe a large chunk of text without having to highlight and delete. The button uses an onclick=”clear();” function call. Here is the function… The problem is it wont clear the

How to keep linebreaks in html textarea POST data

I am trying to have lyrics to a song submitted into a text area. So, this needs to keep the line-breaks when I output. I am aware of the fact that browsers standard should use rn as the line-break, and PHP’s nl2br() function can convert the rn into <br>tags. I am also aware of the fact that textarea inputs require

how to align text in textarea in html

I have a textarea and I am also writing some PHP code to prefill the textarea upon refresh. The “prefill” part is working fine. My problem is when I start to type in the textarea, the text is not left aligned. It is starting at some random point in the textarea box. I want it left aligned like a normal

Advertisement