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
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
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);
, 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
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
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
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
7 matches
Mail list logo