I want to have a textarea with variables that can be edited by using seperate text fields. How can I do this?
-
Working on a webpage... I want to have a form with several text fields to enter variables and have a textarea field below that combines those variables with other text.
-
Answer:
Look into javascript or php.
timrosen... at Yahoo! Answers Visit the source
Other answers
Your question is VERY vague. One answerer said use javascript or PHP. You likely will need Javascript, but not PHP. PHP can't do anything until you click the submit button as it is server-side. Javascript is client-side (meaning it works on your browser and local pc) so it can work within the web page before a submit button is pushed on the form. You can have a textarea and if I remember correctly, you'll need to name it, name="textarea" (you can call it anything you want). I believe most HTML courses do not teach you to name form field elements. But you'll need to name them so the javascript knows which fields you're talking about. You'll need to name your text fields as well. Ok, so the javascript can take what is typed into a text field and place it into the text area. You'll need to put a javascript command inside each <input .. /> tag called the onChange="" What this means is that each time the text area is changed, the javascript will perform a function. I hope this helps you some, but like I said, your question is not very clear as to exactly what you need. Brian
Related Q & A:
- How can I pass global variables into a function?Best solution by Stack Overflow
- In Visual Studio 2012 or 2013, how can I register a DLL file on Windows 7 64-bit computer using a Custom Action command?Best solution by Stack Overflow
- How can I text a cell phone through my email?Best solution by Yahoo! Answers
- If I have a form, such as an application, how can I fill it out using my computer?Best solution by answers.yahoo.com
- How can I get a text alert when I get an email?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.