shutterbug Posted June 26, 2011 Share Posted June 26, 2011 i received this message from processing a form. could anyone help please if you need access to the files i can upload it to you thanks below is the error i get and here is where you can find the form:http://www.hauntedottawa.net/paranormal_form.htmlWarning: include(paranormalform/global.inc.php) [function.include]: failed to open stream: No such file or directory in /home/hauntedo/public_html/paranormalform/process1.php on line 2 Warning: include(paranormalform/global.inc.php) [function.include]: failed to open stream: No such file or directory in /home/hauntedo/public_html/paranormalform/process1.php on line 2 Warning: include() [function.include]: Failed opening 'paranormalform/global.inc.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hauntedo/public_html/paranormalform/process1.php on line 2 Fatal error: Call to undefined function pt_register() in /home/hauntedo/public_html/paranormalform/process1.php on line 5 Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted June 26, 2011 Share Posted June 26, 2011 PHP cannot find the file global.inc.php in the paranormalform/ directory. Where is the file global.inc.php located? if you need access to the files i can upload it to you You can post the contents of the necessary files here. Make sure you wrap the code within or tags Quote Link to comment Share on other sites More sharing options...
shutterbug Posted June 26, 2011 Author Share Posted June 26, 2011 hmm that is weird, its located where it should be daniel Quote Link to comment Share on other sites More sharing options...
shutterbug Posted June 26, 2011 Author Share Posted June 26, 2011 here are the 3 files [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
harristweed Posted June 26, 2011 Share Posted June 26, 2011 hmm that is weird, its located where it should be and where is that? Quote Link to comment Share on other sites More sharing options...
shutterbug Posted June 26, 2011 Author Share Posted June 26, 2011 /public_html/paranormalform in here Quote Link to comment Share on other sites More sharing options...
WebStyles Posted June 26, 2011 Share Posted June 26, 2011 Warning: include(paranormalform/global.inc.php) ... notice how there's a slash missing between paranormal and form. * ignore that. my bad. I read paranormal/form. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted June 26, 2011 Share Posted June 26, 2011 Remove paranormalform/ from this line in process1.php include("paranormalform/global.inc.php"); Quote Link to comment Share on other sites More sharing options...
shutterbug Posted June 26, 2011 Author Share Posted June 26, 2011 do i keep the / before thanks for your help Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted June 26, 2011 Share Posted June 26, 2011 No your include should just be include "global.inc.php"; in process1.php Quote Link to comment Share on other sites More sharing options...
shutterbug Posted June 26, 2011 Author Share Posted June 26, 2011 thank you its working fine BUT i fill out all the fields and it gives me the error. no matter how many time i try to fill it out The following errors occured while processing your form input. You did not enter one or more of the required fields. Please go back and try again. Quote Link to comment Share on other sites More sharing options...
EdwinPaul Posted June 26, 2011 Share Posted June 26, 2011 A few remarks: - $_HTTP_POST_VARS is deprecated - eregi() is deprecated - your function pt_register only puts some text in an array. You can easily do this: $aError=array(); . . $aError[] = 'Your message'; // repeat this as many times as you like . . echo '<pre>'; // there are nicer alternatives for displaying an array.... print_r($aError); // echo '</pre>'; // - try to put all your styles in a separate file and include that file. - the OPTIONs in the select 'whereithappened' have no value. You wil never know what is selected. - the name of the select 'what floor' should not contain a space. - etc... So I think it is wiser to correct your html and php first... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.