Skip to content
Examples might be simplified to improve reading and basic understanding. If the variables are set, the isset function allow the form to get submitted and you will get the data on your email or other form action URL. I don't understand why it always says that it is set, even if I send an empty form. Check whether a variable is empty.
The method attribute of a form can have two values: GET and POST. your coworkers to find and share information. The isset() function checks whether a variable is set, which means that it has to be declared and is not NULL. $_post は、phpの定義済み変数のポスト変数です。この変数は、http post メソッドで送信された値を取得する変数です。htmlで記述された formタグ からの値を受け取り表示したり処理することが出来ます。 $_post のデータ型は配列(配列変数)で、$_post は、連想配列で使用します。 This can be used by Javascript with an ajax command as well.Thanks for contributing an answer to Stack Overflow! There, it checks if the input mail is filled. Seid so fair und beantwortet auch Fragen von anderen Anwendern.
PHP isset() function. false.If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail:
Definition and Usage. Si plusieurs paramètres sont fournis, alors isset() retournera TRUE seulement si tous les paramètres sont définis. can it refers to a specific input or it is generic to the form?I copy paste the code and I think it does not work? if(isset($_POST['submit'])) 它的意思是不是判断是否配置了$_POST['submit'] 这个变量呢?如果有这个变量 在执行其它代码 By clicking “Post Your Answer”, you agree to our To subscribe to this RSS feed, copy and paste this URL into your RSS reader. クライアントからサーバーにデータを送信するHTTPメソッドには、GET と POST の両方があります。クライアントから HTTP GET で送信されたリクエスト結果の値は変化しません。従ってブックマークに登録しても同じ結果を得れます。ですが、HTTP POST で送信されたリクエスト結果の値は変化する場合があります。HTTP POSTの場合、ページを再読み込みする際に「フォームのデータを再送信しますか?」などのメッセージが表示されますが、これは値が変化する場合があるためです。post_reg1.php と post_reg2.php の2つのファイルを作成し、