GETパラメータを含むリンクにPOSTフォームを送信すると問題が発生します。GETパラメータを含むリンクにPOSTフォームを送信
問題は私のhtaccessファイルから来たと思います。
ここに私のhtaccessファイル:
Options -MultiViews
RewriteEngine On
RewriteBase/
# do not do anything for already existing files
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule .+ - [L]
RewriteRule ^create$ create.php [L]
RewriteRule ^delete$ delete.php [L]
RewriteRule ^error$ error.php [L]
RewriteRule ^([\$\.A-Za-z0-9_-]+)$ fetch.php?fetch=$1 [QSA,L]
RewriteRule ^([\$\.A-Za-z0-9_-]+)/make$ fetch.php?fetch=$1&make=do [QSA,L]
RewriteRule ^([\$\.A-Za-z0-9_-]+)/made$ fetch.php?fetch=$1&made=done [QSA,L]
DirectoryIndex index.php
マイPOSTフォーム:
<form action="<?=$param->getsite("url")?>/<?=$product_link?>/make" method="post">
<input type="hidden" name="makeit" value="yes">
<input type="hidden" name="another" value="other">
<input type="submit" value="Let's make it" class="btn btn-primary btn-large">
</form>
メイクページ(このページに提出POSTフォーム):
if(isset($_POST["makeit"]) && $_POST["makeit"] == "yes") {
die("Work !");
}
print_r($_REQUEST);
print_r($_REQUEST);
返品のみ[make] => "do"
(GETパラメータ)、POSTフォームについては何も返されません。このロジックでは
は、あなたが '/ var'ディレクトリ – PseudoAj
からエラーログを投稿することができ、私はhtaccessファイルを知っているが、からの回答はありません[この質問](http://stackoverflow.com/questions/19796522/php-method-post-stopped-working-after-i-added-this-htaccess-why)リダイレクトの「死」データを「死滅させる」。 .. – FirstOne
@PseudoAjエラーログはありません! –