Including classes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all.

Here's what's going on. I have a page which calls itself in a <form>. On this page, I include two classes from other file I've created. On load, the page reads the class stuff just fine. If I submit the form (call the page again), then the class doesn't like to show any results.

<code>

<?
require ("myclass1.php");
require ("myclass2.php");

if ($_POST["submitted"]) {
   // do stuff which includes the class - this does not work
} else {
   // do stuff which includes the class - this works fine
}
?>

<form action="thispage.php">
   <!-- stuff that uses the class info -->
   <input type="hidden" name="submitted" value="1" />
</form>

</code>


Any thoughts on why the class is not working after the submit? I have tried using <code>require_once ("myclass1.php");</code>, but that does not work either. Any suggestions would be greatly appreciated!

Thanks in advance.
~Philip

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux