I'm going to get away from my computer now before I do something realy stupid :P
g'night,
loop
.... sorry for the multiple posts
Changing ENCTYPE to "text/plain" from "multipart/form-data" solved the problem.
:)
loop
From: "James Brennan" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [PHP] uploading flat text to MySQL
Date: Sun, 22 Dec 2002 01:04:14 -0500
I'm using a HTML form to submit flat text files to a MySQL database. When I upload the text file by FTP the script that loads it's contents into the database works as expected. When I upload using the HTML form it seems to ignore the new line in the text file. As a result it only creates one row in the table with some overflow in the last cell. Does anyone know how to deal with this?
thanks,
loop
Relevant code (This executes without error)---
-- from .html ------
<form action="db_upload.php" method="post" ENCTYPE="multipart/form-data">
_________________________________________________________________
MSN 8: advanced junk mail protection and 3 months FREE*. http://join.msn.com/?page=features/junkmail&xAPID=42&PS=47575&PI=7324&DI=7474&SU= http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_advancedjmf_3mf
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________
The new MSN 8: smart spam protection and 3 months FREE*. http://join.msn.com/?page=features/junkmail&xAPID=42&PS=47575&PI=7324&DI=7474&SU= http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_smartspamprotection_3mf
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php