View Full Version : insert data into database
04-30-2004, 01:02 AM
i am using jsp to create web site. How can i insert data into database but do not have text box in the web site. i want to have data automatically show in the database without having people key in data from web site. the purpose for doing this is i want to generate default answer for every member.
04-30-2004, 09:17 AM
To enter information into a database from your website, there needs to be some sort of interface or form, in order for your members to submit their details. I understand your need to assign them each a unique Member ID, this is quite easy to achieve.. what I don't understand is why you seem reluctant to have form fields such as text-boxes. Maybe if you could provide a little more detail explaining what you're trying to do, or possibly provide a URL?
In the meantime, I'm moving your post into Database Talk where you may find more helpful replies than mine! :o)
04-30-2004, 09:24 AM
Although I am not too sure what your intention is and I don't work with jsp but this is what I would do...
When you said 'every member', i am assuming you have some sort of membership system where all members have to log in before they have access to the secure area. Now, why don't you have a script in the login page that will insert the information into the database when users log in with the login form? Or you can simply write a code and insert it on any page you have so when users click on the page, their information will be inserted.
Hope that helps