PHP でフォーム ポップアップ JQuery のテキスト ボックスから値を取得する方法。
これが私のウェブページです。
これを試して:
$("#makhachhang").val();
PHP でテキスト ボックスからデータを取得する場合は、フォーム内に HTML コードを配置し、GET または POST 経由でデータを送信する必要があります。
Javascript経由でデータを取得することをお勧めします。
$("#inline_content table").find("#makhachhang");
入力がそのような場合に使用できます:
$("#IdOfYourInput").val() は内容を返します
のように使う
$("#inline_content table").find("#makhachhang").val(); // by this get id value in your form and same rest
$("#inline_content table").find(".tdthemkhachhang").val(); // by this get name value in your form and same rest
$("#inline_content table :radio :selected").val(); // by this get radio value in your form and same rest
基本的に、アクション属性をフォームに追加し、名前属性を入力に追加するだけです。
<form action="your php file">
<input name="email" />
<input type="submit" />
</form>
次に、php ファイルで、次のように取得します。
$email = $_POST['email']
最初に基本を学ぶことをお勧めします: http://www.w3schools.com/html/html_forms.asp