home
Guest
Signup/Login
to unlock all features
[quote uid=eaweb pid=1886] Hello, and happy Thursday ;) Time for example 3. [b]Example 3[/b] We will be working with forms today. This isn't a html tutorial so I will be doing only a surface explanation about forms. Forms allow users of our Web app to make input while using our app. Inputs include, typing text, select options, check items, upload files etc. So your sample code will ask a user to enter his/her name and year of birth and on click of the submit button the app will display the current age of the users. Type the following code: Next create another file (brain.php) in the same folder as the last file. Type in the following codes into it: If you got everything right your output should be what ever name you entered and the corresponding age for the date of birth. EG, [i]Mike is 27 year(s) old[/i]. Will be the output if I entered Mike and 1990 for name and year of birth respectively. [/quote]