RE: [PHP-DB] Designing an input form for one-to-many etc.

From: Date: Sat, 07 Oct 2000 21:41:37 +0000
Subject: RE: [PHP-DB] Designing an input form for one-to-many etc.
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-3399@lists.php.net to get a copy of this message
I would find this useful for my mail management tool. Currently, I have a form that accepts a single email address (for an alias), and loops endlessly for adding additional addresses until you click on a 'done' button. Email 1: <INPUT TYPE=TEXT SIZE=20 NAME="email[0]"> Email 2: <INPUT TYPE=TEXT SIZE=20 NAME="email[1]"> Then, if the user fills in the second one, a third would automagically appear. When filling in the third, a forth would come up, etc.... -- Troy Settle Pulaski Networks 540.994.4254 It's always a long day, 86400 doesn't fit into a short > -----Original Message----- > From: Mike Erickson [mailto:mee@quidquam.com] > Sent: Saturday, October 07, 2000 5:26 PM > To: Jayme Jeffman Filho > Cc: php-db@lists.php.net > Subject: Re: [PHP-DB] Designing an input form for one-to-many etc. > > > On Sat, 7 Oct 2000, Jayme Jeffman Filho wrote: > > > I'm not sure, but it seems I've allready gave you an advice to > use DHTML to > > create the form "on-the-fly", but let me know more about the problem. > > > > Do some determinated class of nomination have allways the same number of > > entries or its number is undetermined ? If the number of entries are > > constant you can use a "select" tag to choose the "nomination" > and call the > > apropriate form to fill up. If not, I think the only possible > solution is > > create the apropriate form "on-the-fly" using dhtml. I can send you an > > exemple on this matter (let me know the email I should send it to). > > I have a similar problem. I am writing an online contact database and > people may have an arbitrary number of phone numbers, email addresses, > etc. and I haven't figured out a good way to have them input the > information, other than just having them re-use the form and append > data; but I hate that approach. I'd like to see your code. > > Mike > > -- > Mike Erickson <mee@quidquam> http://www.quidquam.com/ > "If passion drives, let reason hold the reins." - Benjamin Franklin > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.db (#3399) next »