Get post in php code is invalid. What is the problem?

Source: Internet
Author: User



Q &
Get post in php code is invalid. What is the problem?
Answer
I can test a page on a local machine, but it won't work after I put it on the server. After I press the OK key, the result is 404 error. The webpage is not found, has anyone ever encountered such a problem? Can you help me solve this problem? Thank you!

The webpage code is as follows:







Epaar



























Chinese | Deutsch













  • Homepage


  • About us


  • Translation Field


  • Translation Process


  • Service items and prices


  • Timely inquiry


  • Customer notice


  • Talent Recruitment





$ Total = @ $ _ POST ['Total'];

$ Queer = @ $ _ POST ['sourcefilelanguage'];

$ Ziel = @ $ _ POST ['targetfilelanguage'];

Function doCal ()

{

$ Zahlung = 0;

$ Anzahl = @ $ _ POST ['Total'];

$ Queer = @ $ _ POST ['sourcefilelanguage'];

$ Ziel = @ $ _ POST ['targetfilelanguage'];



If ($ queer = 'de' & $ ziel = 'cn ')

{

$ Zahlung = $ anzahl/50*12;

}

Else if ($ queer = 'cn' & $ ziel = 'de ')

{

If ($ anzahl <1000 & $ anzahl! = 0)

$ Zahlung = 200;

Else

{

$ Zahlung = $ anzahl/1000*200;

}

}

Return $ zahlung;

}

// Obtain the file suffix Function

Function getFileExt ($ filename)

{

Return substr (strrchr ($ filename, '.'), 1 );

}







?>

















Epaar



About our translation process service projects and their prices in the translation field; customer requirements; talent recruitment website Map

©Copyright 2009



Shanghai ICP backup No. 09017012








Copy the code. The webpage access address is: [url = webpage
Uses the space of Fu net.


Best Answer [url = http://www.111cn.cn/bbs/space.php? Username = shevagal] link mark shevagal [/url]
[Url = http://www.111cn.cn/bbs/space.php? Uid = 46983] link tag [img] http://www.111cn.cn/server/avatar.php? Uid = 46983 & size = small [/img] [/url]
Change

Or
Look



Answers from netizens

Change

Or
Look

Answers from netizens
Case sensitivity

Answers from netizens
A In priceanfrage. php In the action in form is capitalized.

Answers from netizens
The problem has been solved. The original problem is that the file name in the action is different from that in the source file, and the case is different.

Because the operating system of the Local Machine is windows, it is case-insensitive and is case-sensitive on the linux machine. After modification, it will be fine.

Answers from netizens
Thank you. At first, I thought it was a server setting problem. Sorry! [Img] Quit


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.