Forms to go asp php3/30/2023 You can see in the above query string the form data is kept after the file name and the question mark ( ? ). Here is the example how in the GET method data is transferred. The data is separated from the file name by question mark( ? ) and between each pare of name and value ampersand ( & ) symbol is used to separate. In GET method data of the form is passed through query string in name and value pairs. We will learn how to get data using request object and how the data is posted through query string in GET method. Get method of Form posting & Request object data handlingĪs we have seen in ASP form basics, there is an Request object to handle or receive data of a form in the action page ( page specified in form action attribute ). To handle the form data in receiving page ASP request object is used. So here we will receive the data of the form in file_name.asp page for processing. Here is the code for basic html form.įrom the above code we can see the method is specified as post and the action is pointing to file_name.asp. There are two methods to post the data, one is GET and the other one is POST method. In the form html code we will specify to which page the data is to be send by using action attribute and we will also specify method to tell the form the way data is to be posted. Such jobs can be handled by other scripting languages like PHP, Perl, JSP etc. We will learn how to process the form data using ASP ( VBScript ). Once the user submits the form, data processing is done at server side and here we will be using validation at server side scripting language to handle the data. For example if the user has to enter the state name of USA then it is better to ask the user to select the state name from a drop down list box (showing the list of states) than asking the user to enter the state name in a input text box. Different form components are used based on the type of data to be entered by the user. Through a login form when we submit our user id and password, the data reaches the server and is checked against stored user id and password for validation.įorm design is a front end job so html is used to generate different form components to get formatted data from the user. This is the way server gets user entered information for further processing. Through forms users submit data to the server or interact with the site. We can have signup forms to login forms and many other types of forms in our web pages.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |