| | |
How to insert data into a db
![]() |
•
•
Join Date: Dec 2006
Posts: 4
Reputation:
Solved Threads: 0
Hi
Does anyone know how to insert data into a database from a website?
I have created a Registration form for users to register to my web site. With this I would like the data they have entered to be stored in a MySQL database. I have created the a form and used the record insertion form wizard. When I inserted a form, I enetered a name and the method was POST, but it also needed an action. How do I write in java that it needs to be inserted into the database?
But when I press on the submit button, it goes to a page saying the website declined to show this page. The most likely cause is the website requires you to log in.
What am I doing wrong?
The database is set up correctly, however the log in information is not storing but I want them to register first then log in every time they come to the site.
If anyone could help, it would be greatly appreciated,
thanks Lou.
Does anyone know how to insert data into a database from a website?
I have created a Registration form for users to register to my web site. With this I would like the data they have entered to be stored in a MySQL database. I have created the a form and used the record insertion form wizard. When I inserted a form, I enetered a name and the method was POST, but it also needed an action. How do I write in java that it needs to be inserted into the database?
But when I press on the submit button, it goes to a page saying the website declined to show this page. The most likely cause is the website requires you to log in.
What am I doing wrong?
The database is set up correctly, however the log in information is not storing but I want them to register first then log in every time they come to the site.
If anyone could help, it would be greatly appreciated,
thanks Lou.
Your data won't magically make it to the database just because it's there.
You'll need to write code to put it into the database.
There are many ways to do this, but as a beginner you should start out learning the basics and that's JDBC.
There are quite a few tutorials about it, and many good books have a section dedicated to it (of course there are also dedicated books specially for JDBC).
You'll need to write code to put it into the database.
There are many ways to do this, but as a beginner you should start out learning the basics and that's JDBC.
There are quite a few tutorials about it, and many good books have a section dedicated to it (of course there are also dedicated books specially for JDBC).
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
![]() |
Similar Threads
- How to insert data into database? (JSP)
- how to insert data into the database in vb.net using textfields. (VB.NET)
- a blank form to insert data???? (Visual Basic 4 / 5 / 6)
- how to insert data from dataset into database (VB.NET)
- Insert Data in to Db from the Dynamic Rows (HTML and CSS)
- Unable to insert data into database. (MySQL)
- Unable to insert data into SQL Database (ASP)
Other Threads in the Java Forum
- Previous Thread: Using Image Icon to diplay an image
- Next Thread: Converting MS-DOS into Java
| Thread Tools | Search this Thread |
911 addball addressbook android api append applet application apps array arrays automation binary bluetooth businessintelligence button card class client code collision component crashcourse css csv database eclipse ee error fractal free ftp game gis givemetehcodez graphics gui html ide image integer integration j2me japplet java javaarraylist javadoc javafx javaprojects jni jpanel julia jvm linked linux list loan machine map method methods migrate mobile netbeans objects oriented output phone physics printf problem program programming project projects radio recursion replaydirector reporting researchinmotion rotatetext scanner se server service set sms software sort sql string swing test textfield threads tree trolltech ubuntu utility windows






