The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
help with checklist - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: help with checklist (/showthread.php?tid=2421) |
help with checklist - wbatty - Apr 12th, 2013 I co-publish Comic Shop News and we do a weekly checklist of what is due in shops at http://csnsider.com/checklist.html I would like to make a printable checklist, so the boxes that are checked appear as a list. This checklist changes every week. I know the html code is like this <form action="checklist.php" method="post" id="csnsider"> <input type="submit" value="Printable" /> <input type="reset" value="Clear Form" /> So I need to know how to make checklist.php do the part that creates the printable form (if I'm understanding this right). Right now there are check boxes but I've had requests to make it possible that when a user checks the boxes and hits a button that says submit or printable they then are taken to a page that has just the titles they selected. Thanks! I posted this in the installation forum so I'm reposting it here. RE: help with checklist - alexh - Apr 15th, 2013 That looks like a fun project. How I would code that depends on how the page is maintained. Are you using formtools to maintain the database of items you are listing? If not, I would create an internal form with all of the required fields (title, item#, price, etc.). I would then write some php code that would get all of them from the database and display them on the page. Each one would be identifiable by their unique submission ID given by formtools. The user would check boxes next to their choices and hit submit. It would then push their selections (by submission ID) to the next page. That page would only get their selections from the database and display them on the page. The user could then print that page with only their selections. As a disclaimer, I'm somewhat new to php and someone else may have a more simple idea! Alex |