I have a problem that is almost cracking my nutcase.
I have a form that is sent to a PHP script with method post. The main (and probably only) problem is, that the $_POST-array is empty in the receiving end.
I have another form (without file upload) that works like a charm.
I am quite sure there is something wrong in the form, but to my annoyance I can’t find out what. Another possibility would be PHP-settings, but I haven’t found anything suspicious.
I have been programming in PHP since SuSE 6.1 regularly (almost daily) and never ever had this kind of problem which furthemore kicks my a**
If you want to check the problem, it can be found at Vesivehmaa Open
It is in Gibberish-language but never mind
The receiving end is just a print_r for $_POST.
If anyone can shed me some light I would be very grateful
I started just from the scratch and now it works… I really can’t see any difference in the previous code in the form and the current, but the basic difference is that the newer works
This may be one of the black holes in the wonderland of programming, but who cares after it works
Maybe you wrote that post script with a Windows editor and the first line was actually <?php^M where ^M is the carriage return? Or something like that?
Someone I knew used to have PHP scripts fail to run on a Linux server until I pointed out that he had to set the destination server type in Dreamweaver so that the deployer would do the right thing with line endings.