Solved

html form to convert list to string

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

 
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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

627 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