Solved

html form to convert list to string

Posted on 2016-07-29
6
25 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
6 Comments
 
LVL 82

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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 82

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 33

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 33

Expert Comment

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

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now