Solved

html form to convert list to string

Posted on 2016-07-29
6
31 Views
Last Modified: 2016-08-22
Is there a way to create an html form that can convert a list to a string? Example: I'm trying to create form where someone would input
one
two
three

and the form would convert it to:

one,two,three

Is this possible with just html or is script language needed?
0
Comment
Question by:LN41
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 250 total points (awarded by participants)
ID: 41735476
HTML can't do anything like that.  You would need a script to do that.
0
 
LVL 4

Assisted Solution

by:Branislav Borojevic
Branislav Borojevic earned 250 total points (awarded by participants)
ID: 41735927
Are you talking about the output that would be generated when the form is submitted, as a form of a e-mail notification?

In any case, you need a script to do that, the HTML part is simply the front-end side that shows the fields.

You can get the desired result with PHP, maybe explain how / where you are reading the output / results?
0
 
LVL 1

Assisted Solution

by:LN41
LN41 earned 0 total points (awarded by participants)
ID: 41736199
Ideally, user sees the form and pastes in a list then the list is converted to string and the user and copy it right from the website
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 41736237
??  HTML can't do that.  It can't process or rearrange strings or numbers.  That requires a script.
0
 
LVL 34

Expert Comment

by:Slick812
ID: 41737793
greetings LN41 , ,  You say that this arrangement  -
one
two
three

Open in new window

is a "LIST" , and this arrangement -
one,two,three

Open in new window

is a "STRING" or what you want to be the result of a conversion, , and as sated already, ANY and ALL conversions will require an Operation Language as browser Javascript so code signals can be written to tell the script what to get - "the text in the LIST box" - and more importantly, what and how to make operations to change , replace, rearrange the LIST text to a new text "String", , for instance what would need to be done is there is a comma in the LIST elements, like -
one,1
two,2
three,3
0
 
LVL 34

Expert Comment

by:Slick812
ID: 41763494
Covered good posibilities in suggestions
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question