Zend - The PHP Company




Code Gallery: homechicken


html.php  

Type: code fragment
Added by: homechicken
Entered: 21/03/2000
Last modified: 08/12/1999
Rating: **** (17 votes)
Views: 13786
I wrote html library functions because I got tired of escaping all the quotes. There are 4 parts, html.php, lists.php, forms.php, and tables.php, but they function independently. There is also a copy of each file that returns strings instead of printing out the html information. They can work together. If these get good ratings I'll post the ones that return strings, too.


htmlstr.php  

Type: code fragment
Added by: homechicken
Entered: 11/01/2001
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 6214
As I promised, though a bit late, here are the same functions out of html.php that return strings. This is related to liststr.php, formstr.php, and tablestr.php. These files can be included with any of the original ones that don't return strings, but note the functions are named with a postfixed "_str".


lists.php - part of the html.php library  

Type: code fragment
Added by: homechicken
Entered: 21/03/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 6612
Simplifies outputting lists in php. Use in conjunction with html.php, forms.php, and tables.php.


liststr.php - html lists in php  

Type: code fragment
Added by: homechicken
Entered: 12/01/2001
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 4942
A modified version of lists.php, this one returns strings instead of printing html. It is related to htmlstr.php, formstr.php, and tablestr.php. It can be included with any/all related files, but if included along with lists.php, remember the function names are postfixed with a "_str". See example for details


PHP/MySQL Shopping cart  

Type: class
Added by: homechicken
Entered: 03/04/2000
Last modified: 08/12/1999
Rating: **** (48 votes)
Views: 109804
This was based on a shopping cart by Ethan Schroeder. You can still find the original on px.sklar.com (thanks Bill)


tables.php - part of the html.php library  

Type: code fragment
Added by: homechicken
Entered: 21/03/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 7545
Ease the pain of escaping quotes and clean up your php code, use tables.php. Made to go with html.php, lists.php, and forms.php, but they're really only groups of functions.


tablestr.php - html tables in php  

Type: code fragment
Added by: homechicken
Entered: 12/01/2001
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 8224
This is the string-returning form of tables.php. It can work together with htmlstr.php, liststr.php, and formstr.php. It can be included with any/all related files, but remember that if included along with tables.php, the function names that return strings are postfixed with a "_str". See example code for details.




Search