I have a form that needs to be submitted directly to the database. It is a small profile module for artists that allows the artist to enter info. It has its own database table named after my module 'artistfield'.
I have tried this though when you click the submit button nothing happens.
How do you get the submit button to submit the data?
function artistfield_profile_form(){
$mark ='
';
$form['name'] = array(
'#type' => 'textfield',
'#prefix' => $mark,
'#title' => t('Stage Name'),
'#default_value' => variable_get('artistfield_name', 'none'),
'#size' => 60,
'#maxlength' => 150,
'#description' => t('Your stage name - if multiple seperate with commas'),
'#required' => TRUE,
);
$form['description'] = array(
'#type' => 'textarea',
'#cols' => 60,
'#rows' => 5,
'#title' => t('Short description'),
'#description' => t('Short rave about yourself'),
'#required' => TRUE,
);
$form['instruments'] = array(
'#type' => 'textfield',
'#prefix' => $mark,
'#title' => t('Stage Name'),
'#default_value' => variable_get('artistfield_instruments', 'none'),
'#size' => 60,
'#maxlength' => 255,
'#description' => t('Add your instruments without caps with a comma between each one'),
'#required' => TRUE,
);
$form['age'] = array(