Article from http://www.7di.net
Our learning philosophy is from the simplest step by step, so the message book we made at the beginning will be very simple. Through the slow learning, we will gradually go deeper, the function of developing the message book we made is very powerful. In other words, we should first use Dreamweaver (I will cut down the limit within W in the future) or use editplus to create a form style page, such:
The Code is as follows. You can copy the following code and save it as the index. asp file:
The HTML code snippets attached to this Article are as follows:
<Form method = post action = "Doing. asp">
Information title: <br>
<Input type = "text" name = "title"> <Br> <br>
Message content: <br>
<Textarea name = "message" rows = "12" cols = "44"> </textarea> <br>
<Input type = "submit" value = "submit">
</Form>
Now let's analyze the Code:
<Form method = post action = "Doing. asp">
</Form>
We can understand it as a box. When we encounter <form>, we must have </form>. In addition, we need to put all the data we have prepared into these two labels.
Method = post this is the method used to confirm data transmission. We do not need to modify it here.
Action = "Doing. asp" this is the file that receives data. That is, after you click confirm to submit, the data is sent to the Doing. asp file for processing.
<Br> used for line feed
<Input type = "text" name = "title"> This is called a text box. We will use it to enter the title of the user's message. I will explain it later.
<Textarea name = "message" rows = "12" cols = "44"> </textarea>
This is called the text area, used to fill in the message content
<Input type = "submit" value = "submit"> This is the submit button, which triggers all the processing work.