I am trying to get the value that is entered into a text box (string of characters) and display them. The text fields have a the same name which is "important". When I run this I get something like "testhtestetestltestltesto" which is suppose to be "test hello". This is just the first step into what I am trying to do. If anyone would like to give me a suggestion for the bigger issue see the paragraph after the code.
int i;
var items = Request["important"];
for (i=0; i < items.Lenght; i++){
Response.Write("test" + items[i]);
}
I have a list box that contains a number of "courses" which is populated by a sql statement. When the use selects an item in the list box it triggers a statement which writes input boxes for the corresponding course for users to enter in data about the course. I want the user to be able to select multiple courses and input information for these multiple course which will then be submitted and entered into a sql statement hopefully using a foreach statement. The problem is that I don't know how to grab each of the values from the boxes with the same name.