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 Javascript!
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
erdev.com/ Today!!!
To see where PHP might take you tomorrow.
-Original 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:
Any
, 2003 4:18 PM
To: Nelson Goforth
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Form Elements - user adding dynamically
You can use DOM:
Any number you like
function newNumber(f) {
var newfile=document.createElement("input");
newfile.setAttribute(&q
You can use DOM:
Any number you like
function newNumber(f) {
var newfile=document.createElement("input");
newfile.setAttribute("type","text");
newfile.setAttribute("name","number[]");
f.appendChild(newfile);
}
Ne
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
numbers
6 matches
Mail list logo