Reply
PHP preventing page from loading
Old 04-24-2008, 07:14 PM PHP preventing page from loading
andyp's Avatar
Extreme Talker

Posts: 165
Name: andy patterson
Trades: 0
I have a page that contains php code before any page. this all worked fine until I added
PHP Code:
$page1 "<form action=".$_SERVER['PHP_SELF']." method=\"post\">
        <fieldset><legend>Add Page</legend>
            <label>page</label><input name=\"page\" type=\"text\" />
            <label>Description</label><input name=\"description\" type=\"text\" />
            <label>category</label><select name=\"category\">"
.$site->Fetch_Cats_Id()."</select>
            <input id=\"addpagesubmit\" type=\"submit\" value=\"Add Forum\" />
        </fieldset>
    </form>"

The $site class is fine, and I'm not getting any errors generated, or any html in the source for that matter - I'm just wanting to know what has happened.
__________________
My webmaster news & tips blogs with free scripts and tutorials - http://ap-gfx.com
andyp is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 04-24-2008, 07:48 PM Re: PHP preventing page from loading
addonchat's Avatar
Super Talker

Posts: 113
Name: Chris Duerr
Trades: 0
I see one minor issue with quotation marks.. not sure if that helps with your overall problem though, might need to see some more code.

<form action=".$_SERVER['PHP_SELF']." method=\"post\">

should be:

<form action=\"" . $_SERVER['PHP_SELF'] . "\" method=\"post\">
__________________
Chris Duerr
AddonChat Java Chat Software
http://www.addonchat.com/ - Affiliate Program
addonchat is offline
Reply With Quote
View Public Profile
 
Old 04-24-2008, 11:00 PM Re: PHP preventing page from loading
vivekar's Avatar
Webmaster Talker

Posts: 551
Trades: 0
during testing, put the below line to debug your code

ERROR_REPORTING(E_ALL);

when moving it to production, comment it.
__________________
Note: Submit your website in Allthewebsites Directory and find Google PageRank of any URL.
vivekar is offline
Reply With Quote
View Public Profile Visit vivekar's homepage!
 
Old 04-25-2008, 12:20 PM Re: PHP preventing page from loading
andyp's Avatar
Extreme Talker

Posts: 165
Name: andy patterson
Trades: 0
I've tried that, and added the error reporting but its as soon as it reaches the end of the script it stops. I'm confused at this now, I've never had this problem before.

Any ideas please.
__________________
My webmaster news & tips blogs with free scripts and tutorials - http://ap-gfx.com
andyp is offline
Reply With Quote
View Public Profile
 
Old 04-26-2008, 09:31 AM Re: PHP preventing page from loading
solomongaby's Avatar
Webmaster Talker

Latest Blog Post:
How Do You Find Music Online ?
Posts: 522
Name: Gabe Solomon
Location: Romania
Trades: 1
1. use simple quotes for that variable ... so no need to escape all of the others
2. remove $site->Fetch_Cats_Id() .. .maybe this is causing the error
3. also see if display errors is on if not ... add ini_set ('display_errors',1);
__________________
If you like my posts ... TK is appreciated:)
Web Directory | Blog
solomongaby is offline
Reply With Quote
View Public Profile Visit solomongaby's homepage!
 
Old 04-26-2008, 02:44 PM Re: PHP preventing page from loading
andyp's Avatar
Extreme Talker

Posts: 165
Name: andy patterson
Trades: 0
number 3: do I add that to my php script or what?
I've noticed it is when i call a function thats in a class.
__________________
My webmaster news & tips blogs with free scripts and tutorials - http://ap-gfx.com

Last edited by andyp; 04-26-2008 at 02:47 PM.. Reason: found a new bit of info on my problem
andyp is offline
Reply With Quote
View Public Profile
 
Old 04-26-2008, 02:58 PM Re: PHP preventing page from loading
solomongaby's Avatar
Webmaster Talker

Latest Blog Post:
How Do You Find Music Online ?
Posts: 522
Name: Gabe Solomon
Location: Romania
Trades: 1
first check your php configuration by printing phpinfo(); and look for display_errors and see if its on for the local value. If not you add ini_set ('display_errors',1) before ERROR_REPORTING(E_ALL);
__________________
If you like my posts ... TK is appreciated:)
Web Directory | Blog
solomongaby is offline
Reply With Quote
View Public Profile Visit solomongaby's homepage!
 
Reply     « Reply to PHP preventing page from loading
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.35878 seconds with 13 queries