[PHP] Form Elements - user adding dynamically

2003-06-17 Thread Nelson Goforth
I'm constructing an HTML form (via PHP) in which I want the user to be able to add or delete elements as needed. For instance, in a page detailing user information, the user might have one phone or several. Rather than having a set number of slots for phone numbers I'd have one slot and have

Re: [PHP] Form Elements - user adding dynamically

2003-06-17 Thread Chris Hayes
At 15:04 17-6-03, you wrote: I'm constructing an HTML form (via PHP) in which I want the user to be able to add or delete elements as needed. For instance, in a page detailing user information, the user might have one phone or several. Rather than having a set number of slots for phone

Re: [PHP] Form Elements - user adding dynamically

2003-06-17 Thread Marek Kilimajer
You can use DOM: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Strict//EN html head titleAny number you like/title script language=JavaScript1.2 function newNumber(f) { var newfile=document.createElement(input); newfile.setAttribute(type,text);

RE: [PHP] Form Elements - user adding dynamically

2003-06-17 Thread Boaz Yahav
, 2003 4:18 PM To: Nelson Goforth Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Form Elements - user adding dynamically You can use DOM: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Strict//EN html head titleAny number you like/title script language=JavaScript1.2 function newNumber(f) { var

Re: [PHP] Form Elements - user adding dynamically

2003-06-17 Thread Marek Kilimajer
Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 4:18 PM To: Nelson Goforth Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Form Elements - user adding dynamically You can use DOM: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Strict//EN html head titleAny number

Re: [PHP] Form Elements - user adding dynamically

2003-06-17 Thread Marek Kilimajer
I should have also noted DOM is not supported in old browsers or without javascript. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Form Elements - user adding dynamically

2003-06-17 Thread Nelson Goforth
Thank you for the responses re adding form elements. I will explore Javascript solutions. I've been working on a pure PHP solution - to avoid problems with older browsers - but kept running into roadblocks and wasn't sure I'd get through them. In any case most browsers no support