php首先執行form action =」 它不會等待'form action ='from html ... 怎麼了?
<?php
if(isset($_POST['submit']))
{
$name = $_POST['name'];
echo "User Has submitted the form and entered this name : <b> $name </b>";
echo "<br>You can use the following form again to enter a new name.";
}
?>
從我的.htaccess。也許它的制動碼
## Turn on and setup apache rewrite ##
RewriteEngine On
Options +Followsymlinks
RewriteBase/
## Dissable directory indexing ##
Options -Indexes
## Remove trailing slash from end of uri ##
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteCond %{REQUEST_URI} !/$
RewriteRule (.*) $1\.php [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ /$1 [R=301,L]
# Redirect to non.php extension
RewriteCond %{THE_REQUEST} ^GET\ /([^/]+/)*[^.]+\.php(\?[^\ ]*)?\ HTTP/
RewriteRule ^(([^/]+/)*[^.]+)\.php$ $1 [R=301,L]
## Rewrite Rules ##
RewriteRule ^([0-9-a-z-A-Z-_]+)/?$ goto.php?id=$1 [L]
RewriteRule ^account/(.*)$ $1.php [L]
它做什麼..? –
你的問題沒有意義,你的代碼看起來很好,所以請reedit你的問題謝謝... –
它不等待內容提交,當我打開頁面,我已經看到回聲 – user1047737