<script type="text/javascript">
function show() { document.getElementById('area').style.display = 'block'; }
function hide() { document.getElementById('area').style.display = 'none'; }
</script>
<form action="email.php" name="form" id="form" onSubmit="return check()" method="post">
<input type="text" name="Fname"/><br />
<input type="text" name="Lname"/><br />
<input type="text" name="Address"/><br />
<input type="text" name="City"/><br />
<input type="text" name="State"/><br />
<input type="text" name="Zip"/><br />
<input type="text" name="Email"/><br />
<input type="text" name="Phone"/><br />
<input type="radio" name="Donation" value="One Time Annual, Gift of $365.00" onclick="hide();" />One Time Annual, Gift of $365.00<br />
<input type="radio" name="Donation" value="Monthly Gift of $30.00" onclick="hide();" />Monthly Gift of $30.00<br />
<input type="radio" name="Donation" value="Monthly Gift of $30.00" onclick="hide();" />Monthly Gift of $30.00<br />
<input type="radio" name="Donation" value="At Least $1 Per Day" onclick="hide();" />At Least $1 Per Day<br />
<input type="radio" name="Donation" onclick="show();" />I would like to give a one time gift of
<input type="text" id="area" name="Donation" style="display: none;" />
<input type="submit" value="Submit" name="action"/>
and in email.php page i use array('First Name','Last Name','Address','City','State','Zip','Email','Phone','Donation')``
,當我在電子郵件值選擇最後單選按鈕,然後會,但是當我使用任何其他單選按鈕,然後數值不能去電子郵件,請幫我...值不會在電子郵件
我的電子郵件的價值是捐贈,當我選擇最後一個單選按鈕,並將任何值在文本框中,則價值會很好,但是當我選擇其他單選按鈕然後價值不會.. – 2013-04-27 10:39:31
你的意思是說,當你點擊其他單選按鈕捐贈文本框應該是空的(沒有文本),現在不工作?是這樣嗎 ? – 2013-04-27 10:43:37
是的,當我點擊其他單選按鈕時,那個單選按鈕的值應該在電子郵件中... – 2013-04-27 10:45:47