Jump to content

How to assign a value from form input to a variable

Featured Replies

Posted

Hi, 

Say I have a form input

$form->add( new \IPS\Helpers\Form\Number('time', NULL, TRUE ) );

How can I assign the values of that box to some variable, say to $time so that I can send that into database?

if( $values = $form->values() )
{
	$time = $values['time'];
}

 

edit: making another topic.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.