Maison >interface Web >tutoriel HTML >Exemple de partage de code sur la différence entre les méthodes de soumission HTML post et get
Get submit, les informations soumises sont affichées dans la barre d'adresse.
Après la soumission, les informations soumises ne seront pas affichées dans la barre d'adresse, mais seront affichées dans le corps du message.
76c82f278ac045591c9159d381de2c57100db36a723c770d327fc0aef2ce13b193f0f5c25f18dab9d176bd4f6de5d30eb2386ffb911b14667cb8f0f91ea547a7Form.html6e916e0f7d1e588d4f442bf645aedb2f 93685ad3dfe7d4128f90f02ede76f6e3 056be201a2c505b72a49dba1ef90e0d0 2a1109d792b6fe88d5c046831d89a9a7 3a7205719e076db7591b36c2d8ed6c66--> 9c3bca370b5104690d9ef395f2c5f8d16c04bd5ca3fcae76e30b72ad730ca86d 222cae5a40025e7384c612ecc788ed36 表单格式化 0c6dc11e160d3b678d68754cc175188a dc8383b540a4b5e24f1f6e93486c7a1a 866adb18215f1af1680b79053bfecdb5 b07101a26ede453a1ac59b62ee773cc3 62c64f5d3b66e079bfbe3e1bec514e21 81e8d08591d8582160345324403e6421和b6c5a531a458a2e790c1fd6421739d1c标签都是用于表格单元格显示的。不同的是b4d429308760b6c2d20d6300079ed38e在单元格中加粗显示。 --> a34de1251f0d9fe1e645927f19a896e8 0fcca8060d03a26a8f4905765614d138 ff683e61681020824c9c8f21e83c35c2注册表单01c3ce868d2b3d9bce8da5c1b7e41e5b fd273fcf5bcad3dfdad3c41bd81ad3e5 a34de1251f0d9fe1e645927f19a896e8 b6c5a531a458a2e790c1fd6421739d1c用户名称b90dd5946f0946207856a8a37f441edf b6c5a531a458a2e790c1fd6421739d1ce344224483a58fdb48bb8386008c35e2ff9d32c555bb1d9133a29eb4371c1213b90dd5946f0946207856a8a37f441edf fd273fcf5bcad3dfdad3c41bd81ad3e5 a34de1251f0d9fe1e645927f19a896e8 b6c5a531a458a2e790c1fd6421739d1c输入密码b90dd5946f0946207856a8a37f441edf b6c5a531a458a2e790c1fd6421739d1c699023bfefeba08f9769dac2cc11676dff9d32c555bb1d9133a29eb4371c1213b90dd5946f0946207856a8a37f441edf fd273fcf5bcad3dfdad3c41bd81ad3e5 a34de1251f0d9fe1e645927f19a896e8 b6c5a531a458a2e790c1fd6421739d1c确认密码b90dd5946f0946207856a8a37f441edf b6c5a531a458a2e790c1fd6421739d1c602a23fd59805895888430aac8dab3b2ff9d32c555bb1d9133a29eb4371c1213b90dd5946f0946207856a8a37f441edf fd273fcf5bcad3dfdad3c41bd81ad3e5 a34de1251f0d9fe1e645927f19a896e8 b6c5a531a458a2e790c1fd6421739d1c选择性别b90dd5946f0946207856a8a37f441edf b6c5a531a458a2e790c1fd6421739d1cebc15b76e802f40ef30f49f603ec86a3男 4d27fdce4714694dfa00141335f9404c女ff9d32c555bb1d9133a29eb4371c1213b90dd5946f0946207856a8a37f441edf fd273fcf5bcad3dfdad3c41bd81ad3e5 a34de1251f0d9fe1e645927f19a896e8 b6c5a531a458a2e790c1fd6421739d1c选择技术b90dd5946f0946207856a8a37f441edf b6c5a531a458a2e790c1fd6421739d1c0c289cee0dc08e640816fc58d3263e00JAVA 97efb7f0e65ef382afcb8b0ca7c7efa9HTML 84ec231655c2a17c4f4b7add59eb8e53CSS ff9d32c555bb1d9133a29eb4371c1213b90dd5946f0946207856a8a37f441edf fd273fcf5bcad3dfdad3c41bd81ad3e5 a34de1251f0d9fe1e645927f19a896e8 b6c5a531a458a2e790c1fd6421739d1c选择国家b90dd5946f0946207856a8a37f441edf b6c5a531a458a2e790c1fd6421739d1ceb7014f13de1eea04ce4f9d6dd8d7d28 44c23111e58e7d878f12d14428cdd1e4--选择国家--4afa15d3069109ac30911f04c56f3338 b779b50d8d0e188331eeaeb115f233af美国4afa15d3069109ac30911f04c56f3338 3a2197dfe324899a6d1131ecd8a6e2fa英国4afa15d3069109ac30911f04c56f3338 ea69be8a8d2faf68824dfbca5985ffc6 ce69a310e61bed913c335edbd7fc4e26中国4afa15d3069109ac30911f04c56f3338 18bb6ffaf0152bbe49cd8a3620346341b90dd5946f0946207856a8a37f441edf fd273fcf5bcad3dfdad3c41bd81ad3e5 a34de1251f0d9fe1e645927f19a896e8 ff683e61681020824c9c8f21e83c35c238b971f671d544c771f46bc2df9e54c6 becadc95451fc5d7a17b63eaf891042301c3ce868d2b3d9bce8da5c1b7e41e5b fd273fcf5bcad3dfdad3c41bd81ad3e5 f16b1740fad44fb09bfe928bcc527e08 f5a47148e367a6035fd7a2faa965022e36cc49f0c466276486e50c850b7e495673a6ac4ed44ffec12cee46588e518a5e
RegServer.java
/** * */ package cn.itcast.server; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.net.ServerSocket; import java.net.Socket; /** * @author Fry * */ public class RegServer { /** * @param args * @throws Exception */ public static void main(String[] args) throws Exception { ServerSocket ss = new ServerSocket(9891);//新建服务端端口 Socket s = ss.accept();//端口监听 //输出服务器主机地址 ans:0:0:0:0:0:0:0:1 System.out.println(s.getInetAddress().getHostAddress()); InputStream in = s.getInputStream();//字节输入流,用来接收客户端消息 byte[] buf = new byte[1024];//1024字节的缓存 int len = in.read(buf);//将收到的消息读到buf中 //输出接收到的页面消息 包括消息行 消息头 消息体 System.out.println(new String(buf,0,len)); //字符输出,用来存储发送给客户端的消息 PrintWriter out = new PrintWriter(s.getOutputStream(),true); //客户端接收到的消息 out.println("<font color='green' size='7'>注册成功</font>"); //关闭端口 s.close(); ss.close(); } }
Ce qui précède est le contenu détaillé de. pour plus d'informations, suivez d'autres articles connexes sur le site Web de PHP en chinois!