You are here: Re: problem with $_SERVER['REQUEST_METHOD'] == 'POST' « PHP Programming Language « IT news, forums, messages
Re: problem with $_SERVER['REQUEST_METHOD'] == 'POST'

Posted by rynato on 03/29/07 17:05

the problem is fixed. The weird part is, I had to manually re-key a
few of the lines of code. Every time I re-keyed a line, char for char,
the error shifted down one line. Finally I had re-keyed enough of the
lines of code and it worked - to a point.

Now the problem is this:

the script runs fine. It's to upload an image and then resize it.

I have this line of code:

print "<form action=\"<?php print (\$_SERVER['PHP_SELF']); ?>\" method=
\"post\" enctype=\"multipart/form-data\">\n";

when I browse locally to a photo, select it for upload, then submit
it, I get a 404 error with the following path (I chopped off the
unimportant first half of the URL):

/siteAdministration/%3C?php%20print%20($_SERVER['PHP_SELF']);%20?%3E

so it looks to me like it's not parsing the action command
correctly??? I have spent hours on this trying to find the problem and
I cannot see any syntax errors here. Any suggestions out there?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация