You are here: Re: funny problem « PHP Programming Language « IT news, forums, messages
Re: funny problem

Posted by Joseph S. on 11/12/10 11:30

Hi,
It was not typos or urls with "name.php?q=whatever", it was the form
tag attribute enctype="text/plain" -
it was inserted by default in the form tag that is generated by
PHPEclipse
when you select the form option for post from the popup dropdown:

<form action="link" method="post" enctype="text/plain">
cursor
</form>

It does not work with POST but works with GET.
(which is why the fact that it is part of the default text for the form
post tag in PHPEclipse comes as a surprise - it does not work - I have
XAMPP installed Apache/2.0.54 PHP/5.0.4 )

What I found is that with post, the enctype attribute
must either be omitted completely:
<form action="myform.php" method="post">
</form>
or,
if specified, must be set to
enctype="application/x-www-form-urlencoded" or
enctype="mulitpart/form-data"
which work.

As for concurrent file access, as Dikkie pointed out,
it is better to use a database
and if only read is involved, the OS should takes care of it.

I read php.net/flock and it seems better to use a database, however
small.

Thanks all,
Regards,
Joseph.

 

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

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