これは、私が現在 POST 送信アクションを処理している方法です:
<form action="process.php" method="post">
//several form fields
<input type="submit" name="ok" value="save" />
次に、処理ページに次のようなものがあります。
if(isset($_POST['ok']) && $_POST['ok']=="save")
{
//process the action, and possibly save to database
}
今、私は悪意のある人がこれを行うのではないかと心配しています (彼らのウェブサイトのスクリプトから)
<form action="http://www.mysite.com/process.php" method="post">
//he can "view source" on my site, view the fields i'm having and put them
//then put the submit button
<input type="submit" name="ok" value="save" />
もちろん、これで私は温かいスープの中にいることがわかります。どうすればよいですか、または POST 送信アクションを処理および処理する最も安全な方法は何ですか?