index.html
//--------------------------------------------------------
<html><body><form action="test.php" method="POST">
name: <input type="text" name="name" /><br />
email: <input type="text" name="email" /><br />
<input type="submit" value="Submit" /></form></body></html>
//--------------------------------------------------------test.php
//--------------------------------------------------------
<?php
$name = $_POST[name];
$email = $_POST[email];
$name2 = "php_".$name;
echo "$name2<br>";
.
.
.
include(sendmail.php);
?>
//--------------------------------------------------------怎样实现并发访问,给每个用户返回相应的结果?最好能写个代码。
谢谢!
//--------------------------------------------------------
<html><body><form action="test.php" method="POST">
name: <input type="text" name="name" /><br />
email: <input type="text" name="email" /><br />
<input type="submit" value="Submit" /></form></body></html>
//--------------------------------------------------------test.php
//--------------------------------------------------------
<?php
$name = $_POST[name];
$email = $_POST[email];
$name2 = "php_".$name;
echo "$name2<br>";
.
.
.
include(sendmail.php);
?>
//--------------------------------------------------------怎样实现并发访问,给每个用户返回相应的结果?最好能写个代码。
谢谢!
不是说php是单线程的么?
用户A提交数据后,test.php正在运行中,此时用户B好像不能提交数据啊。