ボタンをクリックしてフォームを送信すると呼び出される次の関数があります。
function dadosFormularios(preenchimentoForm){
//var path = document.location.pathname;
//alert(path);
alert(preenchimentoForm);
//window.location.href = 'wp-content/themes/template/index.php';
var qstringA = '';
//dados dos campos
var nome=document.getElementById("nome").value;
qstringA = 'nome='+ nome;
//alert(qstringA);
if(preenchimentoForm==false){
alert('Please correct the errors in the Form');
}
else{
if(preenchimentoForm==true){
window.location.href = 'index.php?'+qstringA;
return false;
}
}
}
この方法でデータを処理しているためindex.php
、関数によって送信されたデータがインデックスに到着したことをページに警告するにはどうすればよいですか? if (isset($_POST['button']..)
フォームのボタンからではなく、関数で情報を送信するので、 を使用できませんよね?