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 https://forums.phpfreaks.com/topic/240454-help-please-new-tp-php-coding/ 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 https://forums.phpfreaks.com/topic/240454-help-please-new-tp-php-coding/#findComment-1235066 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 https://forums.phpfreaks.com/topic/240454-help-please-new-tp-php-coding/#findComment-1235069 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 https://forums.phpfreaks.com/topic/240454-help-please-new-tp-php-coding/#findComment-1235071 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 https://forums.phpfreaks.com/topic/240454-help-please-new-tp-php-coding/#findComment-1235087 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 https://forums.phpfreaks.com/topic/240454-help-please-new-tp-php-coding/#findComment-1235112 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 https://forums.phpfreaks.com/topic/240454-help-please-new-tp-php-coding/#findComment-1235113 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 https://forums.phpfreaks.com/topic/240454-help-please-new-tp-php-coding/#findComment-1235114 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 https://forums.phpfreaks.com/topic/240454-help-please-new-tp-php-coding/#findComment-1235117 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 https://forums.phpfreaks.com/topic/240454-help-please-new-tp-php-coding/#findComment-1235121 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 https://forums.phpfreaks.com/topic/240454-help-please-new-tp-php-coding/#findComment-1235126 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 https://forums.phpfreaks.com/topic/240454-help-please-new-tp-php-coding/#findComment-1235133 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.