The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
form page is blank - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: form page is blank (/showthread.php?tid=1053) |
form page is blank - sagelike - Jan 25th, 2011 Hi there Just trying to get a multi-page form setup and working and I'm having some real trouble. I'm using the API with this code above the form: Code: <?php Code: <form id="form" name="form" action="<?php echo $_SERVER["PHP_SELF"]?>" enctype="application/x-www-form-urlencoded" method="post"> The page stops loading at the point where this code appears. I've tried placing this at the top of my page and the page won't load at all. The page has a .php extension and we're using PHP 5.2.14 on a linux server. I've tested the form without the code and it then loads properly. The only thing I can think of is that I'm running this form from a demo site subdomain (demo.mysite.ca) while formtools is loaded on the main web site (mysite.ca). Both sites are running from the same domain. Thanks for helping. Cheers G RE: form page is blank - Ben - Feb 5th, 2011 Hi G, It sounds like this line is the problem: PHP Code: require_once("/var/www/vhosts/xxxxxxxxxx.ca/httpdocs/ftools/global/api/api.php"); If that's not completely correct, it will show a blank page - so very possibly the path you've entered there is incorrect. It may also be the case that you're forbidden to include that file if it's located on an alternative domain... But maybe try using a relative path to the api.php file instead, just to eliminate the possibility of it being a dud path. Good luck! - Ben |