Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Extending Forms
Name: remgu Date: January 10, 2007 at 07:09:39 Pacific OS: XP CPU/Ram: P4 3.4Ghz 1GB Ram Product: Clone
Comment:
How can I have a form with several associated fields that can be duplicated via the click of a botton? In other words, have the same set of fields added to the form.
Can this be done with regular HTML and Javascripts? I looked around and found this site, which provides an elegant solution: http://www.quirksmode.org/dom/domfo...
The site uses the W3C DOM method, however, truthfully it is currently beyond my scope of knowledge and I am looking for a simpler solution (even if it is not as elegant, since its for my own use). Also it needs to be self contained, meaning no CGI scripts or anything like that because I don't control the web server.
I would appreciate any help on this. Thanks in advance.
Name: Taurus Date: January 28, 2007 at 07:25:32 Pacific
Reply:
I would imagine that it could be accomplished with just JavaScript. I don't know much about JS so i'm afraid I won't be able to help you. I am sure though that JS would be all you need.
Place the code for the fields in a JavaScript function, including the "More fields button" and place the link to execute the function in the button also. I'm more of a php guy so sorry I can't be more helpful.
Developers have a sense of humour, it's just commented out.
0
Response Number 2
Name: remgu Date: January 29, 2007 at 08:38:51 Pacific
Reply:
Thanks Taurus, I've been looking for a java script that will do this and have not found it yet.
Summary: Hmm, intersting, since PHP is just an extended form of HTML. What browser are you using at what settings, and what anti-script security do you have? ...
Summary: i have an html form, that has a pull down menu, that looks something like this: <form action="something.php" method="post"> <select name="var1"> <option value="choice1">Choice1 <option...
Summary: Hello, I have created a simple HTML for my work. I have a "Submit" button located on the bottom of the form. I would like tihs button to send the completed form to an email address. Any ideas on how I...