Skip to content

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 informa…

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…

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 n…