JavaScript Examples
These are some working code snippets that can be used for form validation.
After loading the page, choose View, Source from the menu to view the code.
I recommend downloading the files and modifying the code. You can modify it
using something like Notepad, save it, then view it in the browser.
PHP Examples
- Tuna Cafe. This is a simple multi-form application.
tunacafe.php calls tunaresults.php. This was used for an assignment in past
classes.
- Decision. This is an example of using conditional
statements, covered on p. 42 in the PHP text. decision.html calls decision.php.
- Decision3. This is an example of using conditional
statements, covered on p. 48 in the PHP text. decision3.html calls decision3.php.
- Percentage Calculator. This is covered on p.
75 in the PHP text. driveperc.hml calls calcperc.php
- Hello World. The Hello World program. What
can I say? It's a classic...
- Authentication
Example. Uses the MySQL database on web-dev2.cs.umt.edu.
Download the examples (zip file)
Dowload Authentication code (zip file)