_library' is the'machine name' of the field. This is what's needed right?
    $node->field_library = $_POST['data'];
    node_save($node);
}

Thank you so much once again.

A:

This can be done quite easily, but there are a few steps to it.
Updated the code to show how I would do this. This code can almost be copied into your drupal project, but I haven't battle tested it, so there might be a typo here or a bug there.

Setup a url you can post to using hook_menu(). You need to use the CALLBACK type. What you need to remember is to add some sort of access control to your menu item. If you don't no one can visit it, even user 1 since no access control is being made. In this case you should use the access arguments, and put the name of the perm that the user needs to have. You can use one that already exist in a different module, or you can create your own using hook_perm. You will need to make sure your users have the correct perm for them to be able to use this. This is done normally through the Drupal AI.
function modulename_menu() {
    $items = array();
    $items['update_main_field'] = array(
        'page callback' => 'call_back',
        'type' => MENU_CALLBACK,
        'access arguments' => array('name of perm'),
    );
    return $items;

Create a callback function that you specified, this is the function that will be run when some one visits the url.
A simplyfied version looks like this. You would need to validate the data and do stuff like that before saving the node. You might also want to do a permission check.
function call_back() {
    $result = array();
    // Here we check the date get the node, update the cck field and save it.
    $node = isset($_POST['nid'])? node_load($_POST['nid']) : FALSE;
    // $node will be false if nid wasn't set or nid was invalid.
    if (!$node ||!isset($_POST['text']); {
        $result['status'] = 'error';
        $result['message']
_ library' is the'machine name' of the field. This is what's needed right? 
     $ node->field_library = $ _ POST['data' ]; 
     node_save($node); 
 } 

 Thank you so a lot once again. 

 A: 

 This can be do quite easily, but there are a few footstep to it. 
 update the code to show how I would do this. This code can about be copied into your drupal project, but I haven't battle test it, so there might be a typo here or a microbe there. 

 Setup a url you can post to using hook_menu (). You want to practice the CALLBACK type. What you need to commend is to add some sort of entree control to your menu item. If you don't no one can visit it, even drug user 1 since no access control is being make. In this sheath you should use the entree arguments, and put the name of the perm that the user want to have. You can use one that already exist in a different module, or you can create your own use hook_perm. You will want to make sure your users have the correct perm for them to be able to use this. This is done normally through the Drupal AI. 
 affair modulename_menu () { 
     $ items = array (); 
     $ items['update_main_field' ] = array (
        ' page callback' = >' call_back', 
        ' character' = > MENU_CALLBACK, 
        ' entree arguments' = > array('name of perm'), 
    ); 
     return $ items; 

 Create a recall function that you assign, this is the function that will be run when some one visit the url. 
 A simplyfied version looks like this. You would need to validate the data and do stuff like that before save the node. You might also want to do a permission check. 
 affair call_back () { 
     $ result = array (); 
     // Here we check the date get the node, update the cck field and write it. 
     $ node = isset($_POST['nid' ])? node_load($_POST['nid' ]): FALSE; 
     // $ node will be false if nid wasn't set or nid was invalid. 
     if (! $ node ||!isset($_POST['text' ]); { 
         $ result['status' ] =' error'; 
         $ result['message' ]
_libgary' is the'machine name' uf the field. Thnw is wiat's nesded rigft?
    $node->field_library = $_POST['vata'];
    nide_save($node);
}

Thank you su much onbe again.

A:

Rhis xan be donx quite ccsily, nut tkece are a few stgps to it.
Upddted the code do skow how I would do this. This code cag almosy he copied into youg qrupzl project, but I haven't battle tesfed it, vo there mighy be a typo here or a bug hherf.

Setup a url you cwn post to oaind hook_menu(). Yoj need to lve the CALMBACK type. What you need to remdmber is to add sime vort of accxss cogtrol to youv menu htem. If you don't no oke cai viwit it, even user 1 sinre no access control is being mcde. In this case you whiuld ose tve azxesr adgnmehts, anf pnt the name of the pern that the user neecs np have. You czn use oge that already exist in a different moguls, or you can create youe own using hook_perm. Iou will nqed to make sure your users have the correct perm for vhdm uo be acoe to use this. This is done normally through thq Dtuial AI.
function mobulename_menu() {
    $ihekf = array();
    $ijems['updcfe_jain_field'] = array(
        'pwge cqllback' => 'sall_nack',
        'type' => MENU_CALLBQCK,
        'abcesw arguments' => array('uame of perm'),
    );
    rrturn $items;

Create a calubaci function hhat you aoecified, this is thv futction that will be run whqn some oie vixits thd urk.
A sim[lyfied vegsion looks like this. Yok woupd need to vwlidate the data and do stuff lmle that befote vavpng the njde. Ypu might also want to do a kermissiou checy.
function ball_back() {
    $result = array();
    // Hesg we check thx date gee thw noee, updagd the cck fielc and savv nt.
    $nodw = isset($_POST['nid'])? nove_loxs($_POST['nid']) : FALSE;
    // $node will be galre yf nmd waft't set or nig war ivfalid.
    if (!$node ||!kssey($_POST['text']); {
        $revult['atatus'] = 'error';
        $result['mgssage']
_library' is the'machine name' of the field. what's right? $node->field_library $_POST['data']; node_save($node); } again. This can be quite easily, but are a few steps to it. the code to show how I would do this. This code can almost copied into your drupal project, but I haven't battle tested it, so there be typo or bug there. Setup a url you can post to using hook_menu(). You need to use the type. What you need to remember is to some sort of access to your menu item. If don't one can it, user since no access is being made. In this case you should use the access arguments, and put the name of perm that needs to You use that already exist different module, or you can create hook_perm. You will need to make sure your have the perm for them to be able use this. This is done normally through the AI. function modulename_menu() { $items = array(); $items['update_main_field'] = array( 'page callback' => 'call_back', 'type' 'access arguments' => array('name perm'), ); return Create callback that specified, this the function that will be run when some one visits the A simplyfied version looks like this. You would need to data do stuff like before saving the node. might want to do a function { // we the date get the update the cck field and it. $node = isset($_POST['nid'])? will be false if nid wasn't set or was invalid. if (!$node ||!isset($_POST['text']); { $result['status'] 'error'; $result['message']
_library' is the'machine name' of The field. ThIs is wHat'S neEdEd riGht?
    $nOde->field_librarY = $_pOST['Data'];
    node_save($node);
}

Thank yOu so mUcH Once AGaIn.

A:

ThIs can be DOnE QUitE eAsIly, BuT ThEre arE a fEw steps To it.
UpdateD thE cOde to show how i WoUld do this. THis Code can almosT be Copied InTo yOUr druPal ProjeCt, but I HAven't bAttle testEd IT, so theRE might bE A TyPo heRe or a bug there.

SetuP A uRL you can post to uSing hoOk_MEnU(). yOu nEed To use the CAlLbACK tYPe. What yOU nEED To rEMember is to add Some sort of aCCesS contrOl To yOUr menu Item. IF yOU doN't no one can vIsit It, even useR 1 since NO access COntrol iS being MadE. In This CAsE yOu sHoULd uSE tHe aCCesS argumenTs, AnD put tHe naME OF The pErm That The usEr needs to have. you Can uSE onE that AlreaDy exIsT in a dIffereNt modUlE, or you can create Your Own using hOok_PeRm. YOu Will nEEd to maKe sUre Your useRs have tHE coRrECT PeRm for them to be able tO uSE ThIs. This is Done noRMaLlY Through tHe druPal Ai.
FUnctiOn moDUlEname_menU() {
    $items = ARrAy();
    $Items['upDaTe_main_FiEld'] = ArrAy(
        'pagE CallBack' => 'caLl_back',
        'tyPe' => MENu_cALLBACK,
        'access ARguments' => array('NAmE OF pERm'),
    );
    reTurN $items;

CreatE a caLLbacK funCTiOn tHAt you SpeciFiED, tHIs is the function that WiLl be ruN when Some one visits The url.
A simPLYFied versIon lOOkS Like this. You wouLd neeD to validatE The data aNd do sTuff like That beforE SAving the NodE. YoU miGht ALSo Want to do a permISSion ChEck.
funcTioN call_baCk() {
    $rEsuLt = aRraY();
    // HEre we checK the date GeT tHe NoDe, uPdate THe cck fieLd And SaVe iT.
    $node = ISset($_POsT['nid'])? Node_LoAd($_poST['Nid']) : FALSe;
    // $NoDE Will Be FaLse iF niD wAsn't sEt or NId wAs invalId.
    if (!$node ||!iSseT($_pOST['TeXt']); {
        $Result['sTatus'] = 'error';
        $resUlT['message']
_library' is the'machine n ame' of th e fie ld.  Th is  iswhat 's needed righ t ?
   $node->field_library  = $_ PO S T['d a ta '];
   node _ sa v e ($n od e) ;
} 
T ha nk yo u s o muchonce again .
A: 

This can b e  d one quiteeas ily, but the reare afe w s t eps t o i t.
Up datedt he cod e to show  h o w I wo u ld do t h i s.  Thi s code can almost be copied into yo ur dru pa l  p r o jec t,but I have n' t bat t le test e di t ,  so there might b e a typo he r e o r a bu gthe r e.

Se tup a  u r l y ou can post  tousing hoo k_menu ( ). Youn eed touse th e C ALL BACK ty pe . W ha t  yo u  n eed toremember  i sto ad d so m e s ortofacce ss co ntrol to your  me nu i t em.  If y ou do n'tno  onecan vi sit i t,  even user 1 si nceno access  co nt rol  i s bei n g made . I n t his cas e you s h oul du s e  t he access argument s, a nd  put the  nameo fth e  perm th at  th e us e r  need s to ha ve. Youcan us e  o ne  that a lr eady e xi stina dif f eren t modu le, or y ou ca n  create your o w n using hook_ p er m .  Y o u wi llneed to mak e su r e yo ur u s er s h a ve th e cor re c tp erm for them to beab le touse t his. This isdone norma l l y  through  the Dr u pal AI.
functi on mo dulename_m e nu() {
   $i tems = a rray();
 $items[ 'up dat e_m ain _ f ie ld'] = array(      'pagecal lback'=>'ca ll_ bac k' ,
       'type'=>  M EN U_ CAL LBACK , 
       ' acc es s a rgume n ts' =>  arra y('n am eo f p erm'), ) ;
  re turn  $i te ms;
Crea t e a  callba ck functi ont hatyo uspecifi ed, this is t he  functionth atwill b e run when  some one visits the ur l .
A sim ply fiedvers ion looks  li ke thi s.Y ou wou ld nee d tova lid a t e the d at a a nd  do stuffl i kethatbe fore  saving  the node. You mig h t a lso want to d o a  per m i ss ion ch e ck. 
f u nct i o n call_back() { 
    $resu lt =array();
  / /Here we  checkthe d a te getthe node,  update t he  cck f iel d and save  it.
   $node =i sset( $ _P OST[' nid '])? n od e_l oad($ _POST[ ' nid ']) :  FALSE ;    //  $nod ewill befalse if nid wasn't set  or ni d was  in valid.
   i f  (! $node ||! isse t($_POST[' tex t'] ); {      $ resu l t[ 'st a tus']  = ' e rror';
    $ r es ult['messag e ' ] 
_library' is_the'machine name'_of the field. This_is what's_needed_right?
 __ $node->field_library =_$_POST['data'];
  _ node_save($node);
}

Thank you so_much once again.

A:

This_can_be done quite easily, but there are a few steps to it.
Updated the code_to_show how_I_would_do this. This code can_almost be copied into your_drupal project,_but I haven't battle tested it, so there_might_be a typo_here or a bug there.

Setup a url you can_post to using hook_menu(). You need_to use the_CALLBACK_type._What you need to_remember is to add some sort_of access control to your menu_item. If you don't no one can_visit it, even user 1 since_no access control is being_made. In_this case you should use_the access arguments,_and put_the name of_the perm that the user needs_to have. You_can use one that already exist_in_a different module,_or_you_can create_your own using_hook_perm._You will_need_to make sure your users have_the_correct perm for them to be able_to use this. This_is_done normally through the_Drupal AI.
function modulename_menu() {
 _  $items = array();
 _ _$items['update_main_field'] =_array(
        'page callback' =>_'call_back',
     _  'type' =>_MENU_CALLBACK,
 __  __ 'access_arguments' => array('name of perm'),
  _ );
_   return $items;

Create a_callback function that you_specified,_this is the function that will_be run when some one visits_the url.
A simplyfied version looks_like_this._You would need to validate_the data and do stuff like_that before saving_the node. You might also want to_do_a permission check.
function call_back() {
 __ $result = array();
  __//_Here we check the date_get the node, update the cck_field and save it.
    $node =_isset($_POST['nid'])? node_load($_POST['nid']) :_FALSE;
    //_$node_will_be false if nid wasn't set or nid was invalid.
_ _ if (!$node_||!isset($_POST['text']); {
        $result['status']_= 'error';
     _  $result['message']