runnerjp Posted October 15, 2008 Share Posted October 15, 2008 i have a profile site for runners and im wanting to be able to have users enter ther personal bests for distances such as: distance time 5000m 14:05 3000m 8:32 but i would like it so users can select there times and distances from drop down menus and click a button the adds anouther set of distcnes and times for them to add. Also users will need to be able to chnage existing times but im not really shore how to do this and could do with a point in the right direction. i have included a picture to try and help you guys out with what im looking for.. so basicly all i want is so that if a user wants to add a new pb then the click an add button and a new drop down menu and textbox apprear to add more information too... Quote Link to comment Share on other sites More sharing options...
dennismonsewicz Posted October 15, 2008 Share Posted October 15, 2008 you would need to do this using javascript this way the add button does not have to reload the page Quote Link to comment Share on other sites More sharing options...
runnerjp Posted October 15, 2008 Author Share Posted October 15, 2008 ok but would it not involve php to add the box... and say if a users adds 3 boxes with pbs how would i get the boxes to stay with there obs in lol Quote Link to comment Share on other sites More sharing options...
dennismonsewicz Posted October 15, 2008 Share Posted October 15, 2008 yes it would involve php... your inputs would be saved into an array so that php can parse the data. <input type="text" name="distance[]" /> Notice the brackets after the name Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.