Solved

html form to convert list to string

Posted on 2016-07-29
6
32 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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
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.…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

734 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