一些准备 提交表单的页面 (submit_data.html) 生成验证码,写入cookie的文件 (v_code.php) 处理提交数据的文件 (receive_data.php) - 那么,我们开始吧! 提交页面 代码:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>提交数据</title> </head> <body> <form name="form1" action="receive_data.php" method="post"> <div>手机号:<label><input type="text" name="phone"></label></div