網頁程式撰寫/2017/黃柏實:修訂版本之間的差異

出自六年制學程
跳轉到: 導覽搜尋
第 1 行: 第 1 行:
 
[[分類:網頁程式撰寫]]
 
[[分類:網頁程式撰寫]]
 +
Copy past code from hand-outs and change personal info to own
 +
r.php calls your name and phone number from form.php and sends it to the server so that its put into a list that the server admin can see
 +
 +
 +
Browser: a program that communicates with the server and sends it back to the user
 +
Server: this is the place where all the information gets processed and translated back to us
 +
 +
 +
<> = Tags
 +
Tags must be in pairs
 +
 +
<Meta> = Define
 +
<br/> = Break
 +
 +
<meta http-equiv='content-type' content='text/html;charset=UTF-8'>
 +
//the above line defines the attributes of this program
 +
<form action='r.php'>
 +
//action to send information requested by r.php to the server
 +
姓名:<input type='text' name='__' value='____' /><br/>
 +
email:<input type='text' name='email' value='alledu2@gmail.com' /><br/>
 +
電話:<input type='text' name='phone' value='0987466665' /><br/>
 +
//defines the input to text setting the name of this variable to what is typed in, and <br/> stands for break which moves everything you type after this to the next line
 +
<input type='submit' value='送出' />
 +
//as we can see the input type is no longer "text" but instead "submit" therefor this will become a button that submits the information to r.php
 +
</form>
 +
//closing bracket of the <from> tab, meaning everything between the two will get sent to r.php for processing

2017年9月7日 (四) 11:49的修訂版本

Copy past code from hand-outs and change personal info to own r.php calls your name and phone number from form.php and sends it to the server so that its put into a list that the server admin can see


Browser: a program that communicates with the server and sends it back to the user Server: this is the place where all the information gets processed and translated back to us


<> = Tags Tags must be in pairs

<Meta> = Define
= Break

<meta http-equiv='content-type' content='text/html;charset=UTF-8'> //the above line defines the attributes of this program <form action='r.php'> //action to send information requested by r.php to the server 姓名:<input type='text' name='__' value='____' />
email:<input type='text' name='email' value='alledu2@gmail.com' />
電話:<input type='text' name='phone' value='0987466665' />
//defines the input to text setting the name of this variable to what is typed in, and
stands for break which moves everything you type after this to the next line <input type='submit' value='送出' /> //as we can see the input type is no longer "text" but instead "submit" therefor this will become a button that submits the information to r.php </form> //closing bracket of the <from> tab, meaning everything between the two will get sent to r.php for processing