As already said a few post before:
PHP variables are case-sensitive.
$mypage != $myPage
(Hope it's not again copied from the hawhaw docu :)
Norbert
--- In hawhaw@yahoogroups.com, "Sateesh Chandra Sanga" <sateeshchandra_2003@...>
wrote:
>
> Hi ,
>
> I am very new to hawhaw coding.I am facing lot of problems to write
> code hawhaw with php.when iam trying to call add_form() function it is
> giving error,
>
> Fatal error: Call to a member function add_form() on a non-object in
> C:\xampp\htdocs\hawcode\sample.php on line 40
>
> My Code:
> --------------
> <?php
> require("./hawhaw.inc");
>
> $myPage = new HAW_deck("Register");
> $myPage->use_simulator();
> $myText1 = new HAW_text("Registration", HAW_TEXTFORMAT_BOXED);
> $myText1->set_color("yellow", "#889988"); // works with (X)HTML only
> $form = new HAW_form("/register.php");
> $name = new HAW_input("name", "", "Name");
> $name->set_size(20);
> $name->set_maxlength(20);
> $name->set_br(2);
>
> $myPage->add_text($myText1);
> $form->add_input($name);
>
> $mypage->add_form($form);
> $myPage->create_page();
>
> ?>
>
> ----------------
>
> can you give the solution for this problem asap.And also if you have
> any example code with hawhaw please send me.Please.
>
> Thanking You.
>