Jump to content

Recommended Posts

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

 

Link to comment
https://forums.phpfreaks.com/topic/240454-help-please-new-tp-php-coding/
Share on other sites

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

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.

 

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...

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.