page handling of form submission data related issues

Source: Internet
Author: User
Page processing issues for form submission data
Submission Processing of form data

Newuser.php is a sub-page under the frame of the main page, where the page is used when the form is submitted adduser.php


and adduser.php used the function in the func.php.
Include "func.php";
Include "./func.php";
Both of these will cause the execution to fail:
HTTP Error 500.0-internal Server error

Even if the statements that refer to the functions in func.php are all masked, it is also an error to keep only this one.
But as long as the sentence is blocked, and then perform other operations, it succeeded ...
The explanation is certainly a question of this sentence.

To find a solution.

The associated file path structure is as follows:

Home directory: test/
pubmain.php
newuser.php
conn/adduser.php
conn/func.php

is not the problem I set?

------Solution--------------------
Look at adduser.php and func.php are in the same directory, should not be wrong.
But you don't turn on the wrong tips, so you can't negate other aspects. For example, func.php syntax has errors that cause fatal errors.
So, modify php.ini display_errors = On to restart the server and see the error message again
------Solution--------------------
I pour ...
I have just said the last word.
Or you can add a code in front of the code: error_reporting (E_all | E_notice);
------Solution--------------------
discuss

Reference:

Look at adduser.php and func.php are in the same directory, should not be wrong.
But you don't turn on the wrong tips, so you can't negate other aspects. For example, func.php syntax has errors that cause fatal errors.
So, modify php.ini display_errors = On to restart the server and see the error message again

Thank you for your reply, how to turn on the wrong hint?

------Solution--------------------
It is best to include files in PHP:
Include (DirName (__file__). "/initialize.php");
Include (DirName (__file__). "/.. /mode/mysql_mode_class.php ");
Because the inclusion in PHP is based on the current execution page.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.