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