を示した犬の電卓を作りたい: -私はIndex.htmlとの私のコードです。ここ割合
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<h1>Dog Love Calculator</h1>
<form action="dog2.php" method="post" name="DogCal" onsubmit="return validateForm()" >
<h3>Do Your Dog Hugs you with Eyes?</h3>
<strong><input name="hugs" type="radio" value="hugs_1" />
Yes</strong><br>
<input name="hugs" type="radio" value="hugs_2" />
<strong>No</strong><br>
<input name="hugs" type="radio" value="hugs_3" />
<strong>Maybe</strong><br> <br>
<h3>Does Your Dog Lifts his Eyebrows when Meets You?</h3>
<input name="eyebrows" type="radio" value="eyebrows_1" />
<strong>Yes, Left One</strong><br />
<input name="eyebrows" type="radio" value="eyebrows_2" />
<strong>No, Right One</strong><br />
<input name="eyebrows" type="radio" value="eyebrows_3" />
<strong>No</strong><br /><br>
<h3>What Signs does He show when you Leave Home?</h3>
<input name="signs" type="radio" value="signs_1" />
<strong>Panic</strong><br />
<input name="signs" type="radio" value="signs_2" />
<strong>Calmness</strong><br /><br>
<h3>Where does he like to sleep?</h3>
<strong><input name="sleep" type="radio" value="sleep_1" />
On His Bed</strong><br>
<input name="sleep" type="radio" value="sleep_2" />
<strong>Beside you or on your bed</strong><br><br>
<h3>Does he Give you His favorite toy?</h3>
<input name="toy" type="radio" value="toy_1" />
<strong>Yes</strong><br />
<input name="toy" type="radio" value="toy_2" />
<strong>No</strong><br />
<input name="toy" type="radio" value="toy_3" />
<strong>Sometimes</strong><br /><br>
<h3>Does he take Interest in what you are doing?</h3>
<input name="interest" type="radio" value="interest_1" />
<strong>Yes</strong><br />
<input name="interest" type="radio" value="interest_2" />
<strong>No</strong><br /><br>
<h3>When you call your dog, does your pup quickly Returns Your Call?</h3>
<input name="call" type="radio" value="call_1" />
<strong>Yes</strong><br />
<input name="call" type="radio" value="call_2" />
<strong>No</strong><br /><br>
<h3>How Your Dog wags his tail in front of you?</h3>
<input name="tail" type="radio" value="tail_1" />
<strong>To the Right</strong><br />
<input name="tail" type="radio" value="tail_2" />
<strong>To the Left</strong><br /><br>
<h3>Does he Yawn With You?</h3>
<input name="yawn" type="radio" value="yawn_1" />
<strong>Yes</strong><br />
<input name="yawn" type="radio" value="yawn_2" />
<strong>No</strong><br />
<input name="yawn" type="radio" value="yawn_3" />
<strong>Sometimes</strong><br /><br>
<h3>How your Dog Move his ears in Front of You? </h3>
<input name="ear" type="radio" value="ear_1" />
<strong>Shift The Left Ear</strong><br />
<input name="ear" type="radio" value="ear_2" />
<strong>Shift The Right Ear</strong><br /><br>
<input type="submit" name="SubmitButton" value="Submit" >
<input type="reset" value="Reset">
</form>
</body>
</html>
Dog2.phpは、アクションファイルです。
私はすべてのNoに対して10%、Noに3%、そしてたぶん5%が最終エコーの結果の合計になることを望みます。
誰かが選択した場合:はい、はい、いいえ、はい、時々です。
すると結果は次のようになります:10 + 10 + 3 + 10 + 5 = 38
エコーその
あなたの犬はこのように..あなたに38%を愛するようになります。
言いたいことがたくさんあります。1. HTML5を使用します。 2.インデントしてください。 3.SOはコード提供ツールではありません。バグに遭遇した場合に備えてヘルプを提供します。この質問はあまりにも広すぎます。 3. "私は犬の電卓が欲しい" - >偉大な、私たちはあなたのために幸せです。そこに疑問はありません。 4.ようこそ! – nicovank