Code Sample

Object PHP Code


require_once "/sw/installed/apache20/htdocs/soap/lib/nusoap.php";
class XMPieRequest
{
    protected $xmpie_username = "un";
    protected $xmpie_password = "pw";
    protected $soap_version = 1;

    public $xmpie_api_server = "xmpie";

    protected $soap_class;
    protected $soap_action;
    protected $action_parameters = array();


    public $xmpie_class_app_name = "";
    public $xmpie_api_location = "";
    public $soap_request = "";
    public $soap_response = "";

    function __construct($soap_class, $soap_action, $action_parameters = array())

Multi-Step Form Code


/**
 * Important note:  product_list.php
 * is a required file that sets many variables here.
 * I could not include it here because I didn't have time to 
 * edit it - need to eliminate business-specific strings
 * and variables. Until I'm able to do a real tutorial with a
 * bogus content-type and business goal, there will be the 
 * added difficulty of not knowing what's in that include file.
 * Sorry...
 */

/**
 * Set a Menu item.
 */
function open_request_form_menu()
{
    $items["request_form/index2.php"] =
Subscribe to RSS - Code Sample