The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
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