//Form 1 (a page)
<?php
function oferta_mes_form()
{
$form['#action'] =
url('node/5');
//Importante, redirije con $_POST al siguiente form
$form['fprecio'] =
array(
'#type' => 'textfield',
'#title' =>
t('Precio Oferta'),
'#size' => 30,
'#maxlength' => 30,
'#description' => null,
'#required' => TRUE,
);
$form['submit'] =
array('#type' =>
'submit',
'#value' =>
t('Crear'));
return $form;
}
// Llamamos al render del formulario
function oferta_mes_page() {
}
$out = oferta_mes_page();
// Funcion Submit :)
function oferta_mes_form_validate($elements, $form_state, $form_id= NULL) {
//algo de validacion aqui ~ validate!
}
?>
//Form 2 (page)
<?php
?>