2013-08-22 143 views

回答

0

使用像

$("#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 
+0

非常感謝! –

0

試試這個:

$("#makhachhang").val(); 
0

如果你想從PHP文本框獲取數據,你需要把HTML代碼的形式裏面,然後發送數據通過GET或POST。

我建議你通過Javascript獲取數據。

$("#inline_content table").find("#makhachhang"); 
+0

非常感謝! –

0

您可以使用 如果輸入是這樣的:

$( 「#IdOfYourInput」)VAL()將返回containt

+0

是的。感謝您的幫助,我也認爲通過JavaScript獲得價值,但我想到安全問題,所以我找到了如何使用表單發送價值 –

0

基本上,只要添加一個操作屬性的。表單和名稱屬性到您的輸入。

<form action="your php file"> 
    <input name="email" /> 
    <input type="submit" /> 
</form> 

然後在你的PHP文件,以獲得它:

$email = $_POST['email'] 

我建議你先學習基礎知識: http://www.w3schools.com/html/html_forms.asp

相關問題