I have tried to submit image file to mysql database, it didn't work, however, I succeeded to put the information of form into mysql.
To upload a image file, I use
<? php
if ($HTTP_POST_VARS['action'] == 'submitted') {
// I have tested" if ($submit) {" and " if ($_POST[submit]){ "
echo ' submitted';
...
?>
<form method="post" action=" <?php echo $PHP_SELF; ?> " enctype="multipart/form-data">
...
The 'submitted' does not be echoed.
When I delete " enctype="multipart/form-data" " , I can upload other type information, say character.
I have spent a lot of time on this problem. I would appreciate if someone could help me.