![]() |
|
|
|
#1 |
|
I have an editbox, with an add butoon next to it. The add button should add
what ever the user enters into the dit box, into a listbox. When the save button is clicked (Using PHP here), the contents of the box must be written to a table. Is this possible? Craig |
|
|
|
|
#2 |
|
Posts: n/a
|
Craig wrote:
> I have an editbox, with an add butoon next to it. The add button should add > what ever the user enters into the dit box, into a listbox. > > When the save button is clicked (Using PHP here), the contents of the box > must be written to a table. > > Is this possible? Sounds like a guestbook... -- Els Sonhos vem. Sonhos vão. O resto é imperfeito. - Renato Russo - |
|
|
|
#3 |
|
Posts: n/a
|
No, it's a page where you can add names to a database. But it must be done
at once. Not add a line, write database, add a line, write database.. etc. It must be add items to list, then write when the save button is clicked. "Els" <> wrote in message news:403b161e$0$41752$ i.nl... > Craig wrote: > > > I have an editbox, with an add butoon next to it. The add button should add > > what ever the user enters into the dit box, into a listbox. > > > > When the save button is clicked (Using PHP here), the contents of the box > > must be written to a table. > > > > Is this possible? > > Sounds like a guestbook... > > -- > Els > > Sonhos vem. Sonhos vão. O resto é imperfeito. > - Renato Russo - > |
|
|
|
#4 |
|
Posts: n/a
|
"Craig" <> wrote in message
news:403b240b$0$17830$.. . > No, it's a page where you can add names to a database. But it must be done > at once. Not add a line, write database, add a line, write database.. etc. > > It must be add items to list, then write when the save button is clicked. > > "Els" <> wrote in message > news:403b161e$0$41752$ i.nl... > > Craig wrote: > > > > > I have an editbox, with an add butoon next to it. The add button should > add > > > what ever the user enters into the dit box, into a listbox. > > > > > > When the save button is clicked (Using PHP here), the contents of the > box > > > must be written to a table. > > > > > > Is this possible? > > > > Sounds like a guestbook... > > > > -- > > Els > > > > Sonhos vem. Sonhos vão. O resto é imperfeito. > > - Renato Russo - > > > > Not a very elegant solution, but here goes: 1) EditBox no. 1 - user input goes here 2) ListBox - here you display the names user has already entered 3) *hidden* EditBox - you fill in this one (using JavaScript) with something like "this is name1|this is the second name|foo|bar" You may choose any separator, not neccessarily |, of course. Just make sure users don't enter a line containing your separator. Anyway, the contents of this hidden EditBox is the what your script should read and parse appropriately, probably using a split() function or something similar. Mitja |
|
|
|
#5 |
|
Posts: n/a
|
"Craig" <> wrote in message news:<403b15d1$0$17814$> ...
> I have an editbox, with an add butoon next to it. The add button should add > what ever the user enters into the dit box, into a listbox. > > When the save button is clicked (Using PHP here), the contents of the box > must be written to a table. > > Is this possible? http://developer.irt.org/script/form.htm#4 -- Hywel |
|