PHP Classes

Debug output by Checkbox

Recommend this page to a friend!

      PHP Email validation  >  All threads  >  Debug output by Checkbox  >  (Un) Subscribe thread alerts  
Subject:Debug output by Checkbox
Summary:PHP
Messages:2
Author:Ronny
Date:2017-08-30 10:04:23
 

 


  1. Debug output by Checkbox   Reply   Report abuse  
Picture of Ronny Ronny - 2017-08-30 10:04:23
Hello,

i dont want to output the debug by default. I want the user to choose if the dialog should be displayed or not by a form (checkbox). If the box is checked , the debug should be 1, otherwise 0.

$validator->debug=1;

How can i build this in php?

Thanks!

  2. Re: Debug output by Checkbox   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2017-09-08 04:33:46 - In reply to message 1 from Ronny
This is an example script. If you want to make it an option, just add a field to the example script form and let the user pick if he wants to have debug enabled or not.

Just let me know if you have difficulty to do that.

 
For more information send a message to info at phpclasses dot org.