freelance84 Posted April 23, 2010 Share Posted April 23, 2010 Is this possible? Please look at the attached image. I am trying to create a team creation page for a site I am making, however I want the user to be able to see all the names they enter before the information is passed to the .php file to send it to the MySQL table. 1. So, every time the user enters a name and presses the "add name" button the name details are stored in an Javascript array and displayed in the box below. 2. When the user presses the "save team" button the team name is passed by a simple form post and the javascript array is passed to a php array and then processed ready to be passed to the MySQL table. The problem is I don't know to do the first bit (number1). Any ideas or pointers? [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/199535-dynamic-form/ Share on other sites More sharing options...
F1Fan Posted April 23, 2010 Share Posted April 23, 2010 That's a little complex to explain here without writing it for you, but here's a reference I found after a quick Google search. Search yourself for more. http://www.dustindiaz.com/add-and-remove-html-elements-dynamically-with-javascript/ Link to comment https://forums.phpfreaks.com/topic/199535-dynamic-form/#findComment-1047341 Share on other sites More sharing options...
freelance84 Posted April 23, 2010 Author Share Posted April 23, 2010 ahhh, add and remove html with javascript! the key is in what you search for as always. Thanks a bundle, i'll see if i can do it with that page. Link to comment https://forums.phpfreaks.com/topic/199535-dynamic-form/#findComment-1047347 Share on other sites More sharing options...
F1Fan Posted April 23, 2010 Share Posted April 23, 2010 FYI, I searched for "javascript add textbox." Link to comment https://forums.phpfreaks.com/topic/199535-dynamic-form/#findComment-1047348 Share on other sites More sharing options...
freelance84 Posted April 23, 2010 Author Share Posted April 23, 2010 ah ok. cheers Link to comment https://forums.phpfreaks.com/topic/199535-dynamic-form/#findComment-1047351 Share on other sites More sharing options...
seventheyejosh Posted April 23, 2010 Share Posted April 23, 2010 And fyi, "DOM Manipulation" is the proper term http://www.google.com/#hl=en&source=hp&q=dom+manipulation&aq=0&aqi=g8g-m2&aql=&oq=DOM+manipu&gs_rfai=&fp=70182750bb56679e Link to comment https://forums.phpfreaks.com/topic/199535-dynamic-form/#findComment-1047358 Share on other sites More sharing options...
freelance84 Posted April 24, 2010 Author Share Posted April 24, 2010 http://www.htmlgoodies.com/primers/jsp/article.php/3594621 this is a pretty good one Link to comment https://forums.phpfreaks.com/topic/199535-dynamic-form/#findComment-1047534 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.