All about PHP and HTML

This is just normal html. Anytime you have something between

<?php
and
?>
in your html file, the server will run it as php code before sending the html file to whoever requested it.

As usual, search online for "php tutorial", "php web form", etc. to find examples and information about the syntax and so on.

In this file, we show some basic examples of php processing using web forms. You can view the source for the file by logging into CS and going to the right directory.

A form

Note: this form is mostly just normal html. The only php in here is to display what they had already entered before if they have already submitted the form.

Prime numbers...
First prime number greater than
Calculate

Connecting to mysql

The following is pulled out of the department's database.

Who to look up?
What to search for?
Look up

Warning: include(/net/usr/webAuth/auth.php): Failed to open stream: No such file or directory in /home/jkinne/public_html/cs457-f2012/code/form.php on line 97

Warning: include(): Failed opening '/net/usr/webAuth/auth.php' for inclusion (include_path='.:/usr/share/php') in /home/jkinne/public_html/cs457-f2012/code/form.php on line 97

Fatal error: Uncaught Error: Call to undefined function safe_query() in /home/jkinne/public_html/cs457-f2012/code/form.php:100 Stack trace: #0 {main} thrown in /home/jkinne/public_html/cs457-f2012/code/form.php on line 100