Difference between revisions of "AIM Class8"
(→Web Forms) |
(→Web Forms) |
||
Line 5: | Line 5: | ||
HTML Form Example | HTML Form Example | ||
− | Simple GET | + | ===Simple GET=== |
+ | This is a simple example of an html form that have two text fields. One call FirstName and one called LastName. The two fields are sent via a get request to an aspx apge that displays the results. | ||
+ | |||
http://iam.colum.edu/AIM/class8/simpleGet.html | http://iam.colum.edu/AIM/class8/simpleGet.html | ||
Here is the simpleGet.aspx [http://iam.colum.edu/aim/gbrowser.php?file=/Class8/simpleGet.aspx source] for those that are interasted | Here is the simpleGet.aspx [http://iam.colum.edu/aim/gbrowser.php?file=/Class8/simpleGet.aspx source] for those that are interasted | ||
− | Simple POST | + | ===Simple POST=== |
+ | Same a the simple GET page except the page uses a POST instead of a get. Notice that the variables do not show up in the querysting to the action page. The variables here are sent in the http header. You may also notice there is a syblt cahnge in the way that aspx read these varibales. | ||
+ | |||
http://iam.colum.edu/AIM/class8/simplePost.html | http://iam.colum.edu/AIM/class8/simplePost.html | ||
Here is the simplePost.aspx [http://iam.colum.edu/aim/gbrowser.php?file=/Class8/simplePost.aspx source] for those that are interasted | Here is the simplePost.aspx [http://iam.colum.edu/aim/gbrowser.php?file=/Class8/simplePost.aspx source] for those that are interasted |
Revision as of 20:51, 16 June 2006
Class 8
Web Forms
HTML Form Example
Simple GET
This is a simple example of an html form that have two text fields. One call FirstName and one called LastName. The two fields are sent via a get request to an aspx apge that displays the results.
http://iam.colum.edu/AIM/class8/simpleGet.html
Here is the simpleGet.aspx source for those that are interasted
Simple POST
Same a the simple GET page except the page uses a POST instead of a get. Notice that the variables do not show up in the querysting to the action page. The variables here are sent in the http header. You may also notice there is a syblt cahnge in the way that aspx read these varibales.
http://iam.colum.edu/AIM/class8/simplePost.html
Here is the simplePost.aspx source for those that are interasted
All HTML input types http://iam.colum.edu/AIM/class8/htmlFormExample.html
PHP
Homework
Reading
Links
http://php.net
http://www.w3schools.com/php/default.asp
http://www.w3schools.com/html/html_forms.asp