This is my first time using PEAR. I'm using PHP5, so the package manager was already installed. I have updated my PEAR installation, and installed a couple packages. The first package I am trying to work with is HTML_QuickForm.
I used a simple script to start with to make sure everything was working ok:
<?php
include('HTML/QuickForm.php');
$form = new HTML_QuickForm('frmTest', 'get');
$form->addElement('header', 'MyHeader', 'Testing QuickForm');
$form->display();
?>
I got a blank screen when running the script. I then tried:
<?php
echo "hello";
include('HTML/QuickForm.php');
echo "<br>require_once";
$form = new HTML_QuickForm('frmTest', 'get');
echo "<br>first $form";
$form->addElement('header', 'MyHeader', 'Testing QuickForm');
$form->display();
?>
The output I got was:
hello
require_once
That not working, I then tried:
<?php
echo "hello";
if (!include('HTML/QuickForm.php'))
{ echo "<br>cant find include";
}
echo "<br>require_once";
$form = new HTML_QuickForm('frmTest', 'get');
echo "first $form";
$form->addElement('header', 'MyHeader', 'Testing QuickForm');
$form->display();
?>
The output I got was:
hello
cant find include
require_once
This leads me to believe that possibly the installation is not correct ? I've been messing with this for a couple days now and its starting to get frustrating. Any ideas are greatly appreciated!