Jump to content

Recommended Posts

hello team,

 

can you please look at this code snippet and tell me why it is showing the following data this way?

 

<?php
#  jeff Exp $
include("app.php");

$page->set("title", "Business & Commerical");

$what = $page->getvar("what");
$type = $page->getvar("type");

$dt = new xDataTable('width="500"');
$form = new Form();

if($what == "submit") $html->set("readonly", true);

$dt->header($_types{$type} . " Quote");

$form->get_contact_form(true);

 

When I run it, it shows like this:

 

set("title", "Business & Commerical"); $what = $page->getvar("what"); $type = $page->getvar("type"); $dt = new xDataTable('width="500"'); $form = new Form(); if($what == "submit") $html->set("readonly", true); $dt->header($_types{$type} . " Quote"); $form->get_contact_form(true); switch ($type) { case "comp": $dt->left("Business Type:"); $dt->cell($html->select("business_type", $_business_type, 1, "", $page->getvar("business_type"), "(select)")); $dt->left("Federal Tax ID:"); $dt->cell($html->textfield("tax_id", $page->getvar("tax_id"), 12)); $dt->left("If Individual, Owner SSN#:"); $dt->cell($html->textfield("ssn", $page->getvar("ssn"), 12)); $dt->cell("Spouse SSN#:"); $dt->cell($html->textfield("spouse_ssn", $page->getvar("spouse_ssn"), 12));

 

just a small sample.

 

What am I doing wrong?

 

Thanks alot in advance

Link to comment
https://forums.phpfreaks.com/topic/215812-code-not-showing-anything/
Share on other sites

just a bunch of classes and some additional include files

 

<?php


#-------------------------------------------------------------------------------
#
# Include all relevant files.

include_once("config.php");
include_once("tools.php");
include_once("logtools.php");
include_once("htmltools.php");
include_once("nettools.php");

#===============================================================================
#
# Application class
#
# An object used to represent the application itself, and provide functionality
# specific to the application.
#
#===============================================================================

class Application extends Object
{
  #-----------------------------------------------------------------------------
  #
  # Constructor.
  #
  # Argument : none.
  # Returns :  nothing.
  #
  #-----------------------------------------------------------------------------

  function Application() { }

} # class Application.

#-------------------------------------------------------------------------------

 

This is not all of it, just snip

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.