The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
generateAddForm
#2
We're actually working on a new and really awesome form generator, but this function still works and will continue to.

Essentially this function speeds up creating the form, but you still have to process it.

So the syntax is
Code:
<form class="" action="" method="post">
Code:
<?php generateAddForm('mqtt');?>
Code:
<input type='submit' value='submit' name='submit' class='form-control'>
Code:
</form>

Then at the top of the page, you can do a dnd to see what the form is submitting and write your logic to process it.
Code:
if(!empty($_POST)){
Code:
dnd($_POST);
Code:
}

Sorry. There was no documentation on that.
  Reply


Messages In This Thread
generateAddForm - by fly476 - 02-15-2018, 01:28 AM
generateAddForm - by mudmin - 02-15-2018, 12:35 PM
generateAddForm - by mudmin - 02-15-2018, 12:43 PM
generateAddForm - by matthewra - 02-18-2018, 07:22 PM
generateAddForm - by mudmin - 02-18-2018, 08:07 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)