Use this method when the form has no side-effects and contains only ASCII characters. get: The data from the form are appended to the form attribute URI, with a '?' as a separator, and the resulting URI is sent to the server.* post: The data from the form is included in the body of the form and is sent to the server. If the button is a submit button, this attribute specifies the HTTP method that the browser uses to submit the form. If this attribute is specified, it overrides the enctype attribute of the button's form owner. multipart/form-data: Use this value if you are using an element with the type attribute set to file.application/x-www-form-urlencoded: The default value if the attribute is not specified.If the button is a submit button, this attribute specifies the type of content that is used to submit the form to the server. If specified, it overrides the action attribute of the button's form owner. The URI of a program that processes the information submitted by the button. This attribute enables you to place elements anywhere within a document, not just as descendants of their elements. If this attribute is not specified, the element must be a descendant of a element. The value of the attribute must be the id attribute of a element in the same document. If this attribute is not specified, the button inherits its setting from the containing element if there is no containing element with the disabled attribute set, then the button is enabled. This Boolean attribute indicates that the user cannot interact with the button. Only one form-associated element in a document can have this attribute specified.
This Boolean attribute lets you specify that the button should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. If it is a descendant of a element, the element's id attribute must have the same value as the label's for attribute. This element must not be a descendant of an element or another element. ' SqlDbType.NVarChar).Value = SqlDbType.NVarChar).Value = HTML element represents a clickable button. ' do you want value, or text from cbo box? With SqlDbType.NVarChar).Value = SqlDbType.NVarChar).Value = SqlDbType.NVarChar).Value = SqlDbType.NVarChar).Value = cntry.Text
" VALUES cmdSQL As New SqlCommand(strSQL, conn) "INSERT INTO tblUsers (User, Password, PictureURL, Country,League " & Using conn As New SqlConnection(My.Settings.TEST4) Protected Sub SubmitID_Click(sender As Object, e As EventArgs) Handles SubmitID.Click So, dump the "input" buttons, and replace them with asp.net text boxes. Also, since you are using color = white, then you NOT see your labels on the form (unless you have some back ground color. You can as noted just drag + drop those onto the web page.
For things like text boxes etc., use ASP.net controls - not the HTML ones. However, we first need to fix up the markup you have. But, with what you have so far, then this is the approach: In fact, if you not all that great at writing SQL, I try and post a 2nd approach. Any advice is greatly appreciated as I'm not very familiar with visual basic. If anyone answers, just make up names for any SQL or tables as I can sort that myself afterwards. What I need to do is collect all data from the inputs and the dropdown menu and input it into my database using an SQL INSERT.
I'm really just not sure how to go about this, or if I've started it off right. Using cmdSQL As New SqlCommand("INSERT command to be added") Using conn As New SqlConnection(My.Settings.DATABASE)
Note the button uses the ASP button, since in the code behind, I have: Protected Sub SubmitButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles SubmitID.Click I've seen this question around, but there's always something different about it that means I can't use it. I want the user to submit data into the form and have it inserted into the database. I have an ASP.NET website and I have a form.