Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hushicai committed Apr 21, 2015
1 parent 1292317 commit 356b2f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions demo/post/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
<title>post</title>
</head>
<body>
<form action="./index.php" method="post" target="hidden">
<form action="./index.php" method="post">
<input type="text" name="name" value="hushicai">
<input type="submit" value="submit">
</form>
<iframe src="about:blank" name="hidden" style="display: none"></iframe>
</body>
</html>
2 changes: 1 addition & 1 deletion demo/post/index.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php

echo $_POST['name'];
var_dump($_COOKIE);
2 changes: 1 addition & 1 deletion mock/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ app.set('port', 8000);

var documentRoot = require('path').resolve(__dirname, '..');

app.use(bodyParser.urlencoded({extended: true}));
// app.use(bodyParser.urlencoded({extended: true}));
// app.use(multer({dest: './uploads/'}));
app.use(phpcgi({documentRoot: documentRoot}));
app.use(serveIndex(documentRoot));
Expand Down

0 comments on commit 356b2f2

Please sign in to comment.