TEDIA会員に登録したメールアドレスとパスワードを入力してください

メールアドレス:

     パスワード:


パスワードを忘れた方はパスワードの確認を行ってください。

TEDIA会員へのご登録がお済みで無い方はこちらで登録ができます


>> テクノロジーポータル TEDIA トップページへ戻る <<

Think IT Software Developer's Think IT Find-IT 失敗しないソフト選び Find-IT TEDIA テクノロジーポータル TEDIA インストールマニアックス2008 インストールマニアックス2008

TEDIA SponsorsOpen Source Web Development Tutorials - Dev Shed

PHPでIQテストを作る
(2009/03/05公開)

HTMLテストフォーム

 上の質問用のテストフォームは、HTMLを使った単純な方法で作成できます。以下に示すのは完全なソースコードです。


<HTML>
<HEAD>
<TITLE>An 10 Question IQ Test </TITLE>
</HEAD>
<BODY>
<form action="IQ.php" method="post">
Please enter your age now <input type="text" name="age" size="2">
<br /><br />
Below are the 10 questions for this IQ Test. ALL ANSWERS IN LOWERCASE 
PLEASE.Answer as honestly as you can.
<br /><br />
Test question 1: What is the approximate shape of orange fruit, 
it starts with "r". <input type="text" name="T1" size="30">
<br /><br />
Test question 2: What is the product of 5 and 3? 
<input type="text" name="T2" size="30">
<br /><br />
Test question 3: If I have 3 apples and 12 mangoes, 
how many fruits do I have? <input type="text" name="T3" size="30">
<br /><br />
Test question 4: -5 + (+9)-(-8) is how much? 
<input type="text" name="T4" size="30">
<br /><br />
Test question 5: The result of 2 to the power of 6 divided 
by eight squared is how much? <input type="text" name="T5" size="30">
<br /><br />
Test question 6: If I have a right triangle whose two shorter 
sides are 5 and 12 respectively, how long is the longest side? 
<input type="text" name="T6" size="30">
<br /><br />
Test question 7: What is the name of  a  popular TV news network 
with two “Ns” comprised of 3 letters as initials? 
<input type="text" name="T7" size="30">
<br /><br />
Test question 8: In 2008, John is 2 times older than Jerry. 
In 2040, Jerry will be 46 years old. Find John's year of birth. 
<input type="text" name="T8" size="30">
<br /><br />
Test question 9: If you are using Excel, which function 
offers the most convenient and most popular approach for 
extracting data from other spreadsheets or workbooks without 
using the manual copy and paste method. This is a one word answer. 
<input type="text" name="T9" size="30">
<br /><br />
Test question 10: If a 65 year old couple retires today 
how much may they need today to cover their future health care  
cost? This answer is only a figure and does not include a dollar sign. 
<input type="text" name="T10" size="30">
<br /><br />

<input type="submit" value="Compute my IQ now!">
</form>
</BODY>
</HTML>


前のページ     1    2    3    4    次のページ

Copyright © 2008 Ziff Davis Enterprise, Inc.
Originally appearing in the U.S. Edition of Dev Shed. All Rights Reserved.