By pamu777 on
Hi buddy,
I want to use 'value' type of form not to show values to users..
ex, $form['test'] = array('#type' => 'value', '#value' => 'testvalue');
ex2, $form['test2'] = array('#type' => 'hidden', '#value' => 'testvalue2');
but, when I access $_POST['test'], there is no values in there..
I tried 'hidden' type, I can access $_POST['test2']..
do you guys know how to access 'value' type?
thanks
Comments
additional info..
Actually I'm using this type in below function, and I want to access 'value' type in 'Actioned' page..
every other values can be accessed by $_POST, but not 'value'... please anyone who can resolve help me~
function eulog_node_guestbook_edit_form($nid)
{
$form['test'] = array('#type' => 'value', '#value' => 'testvalue');
$form['test2'] = array('#type' => 'hidden', '#value' => 'testvalue2');
$editurl='interface/'.$nid.'/edit';
$form['#action'] = url($editurl);
$form['edit']=array(
'#type' => 'submit'
,'#value' => t('Edit')
);
return $form;
}
Hi You can Solve using SESIOn
You can put these values inn $_SESSION[] while
function eulog_node_guestbook_edit_form_submit($node,$form_values)
{
$_SESSION['edit'] =$form_values['edit'];
}
then You can access this value in actioned page using
$ed=$_SESSION['edit'];
if even this dosnt work then you can use
then check them using view source at out put and take action...
Inder Singh
http://indersingh.com