Jump to content

Session variables


jbert

Recommended Posts

I am very inexperienced with PHP, and I cannot seem to figure out how to post a session value into a field.

 

I have created a new record and posted a JobID into a new record, but I also need to insert an ID (session value) into a field in the same record.  My code is as follows:

 

<?php

 

session_start();

 

$New_Request_add = clone($Posting);

$New_Request_add->layout = 'Transfer Requests';

$New_Request_fields = array('JobID'=>$_POST['JobID']);

 

foreach($New_Request_fields as $key=>$value) {

    $New_Request_add->AddDBParam($key,$value);

}

 

$New_Request_result = $New_Request_add->FMNew();

 

if(is_a($New_Request_result,"FX_Error") || $New_Request_result['errorCode'] != "0") fmsTrapError($New_Request_result,"error.php");

 

$New_Request_row = current($New_Request_result['data']);

$New_Request_row_key = key($New_Request_result['data']);

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.