RE: [PHP-WIN] $subject = "form results " causing problem

2005-02-02 Thread Patrick Roane
Mike, thanks a lot! All I had to do was swich the $subject over to the 2nd param. in my mail (). Sometimes the answer is so easy, you don't see it! --- Mike <[EMAIL PROTECTED]> wrote: > Looks like you may be using the wrong format for the > mail() function. > > bool mail ( string to, string s

RE: [PHP-WIN] $subject = "form results " causing problem

2005-02-02 Thread Mike
Looks like you may be using the wrong format for the mail() function. bool mail ( string to, string subject, string message [, string additional_headers [, string additional_parameters]] ) http://us4.php.net/manual/en/function.mail.php Reference the form you should be passing params and notice

[PHP-WIN] $subject = "form results " causing problem

2005-02-02 Thread Patrick Roane
I was wondering why when I insert the $subject = "form results", I get the ...echo "Message failed to send"; error. But when I comment this out, everything works fine. Please see below. 0) { foreach($errors as $err) echo "$err\n"; echo "Please use your browser's Bac

Re: [PHP-WIN] Frustrating File Upload Error

2005-02-02 Thread trystano
Firstly, before evening uploading a file, you should check to see whether a file has been selected (there is a filename in the textbox) - use JavaScript for this. Then secondly, you should always perform some logic before actually attempting the upload such as checking to see that it has a file

RE: [PHP-WIN] Frustrating File Upload Error

2005-02-02 Thread Mikey
> if($_FILES) > { > if(isset($_FILES['file_upload']) && > $_FILES['file_upload']['name'] !="") { > > .. > Any ideas or suggestions? > > Thanks, > Ron Have you tried: If (isset ($_FILES)) Is only a guess though. HTH, Mikey -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe,

[PHP-WIN] Frustrating File Upload Error

2005-02-02 Thread Ron.Herhuth
I have a form that may or may not contain a file upload. When the user uploads a file the script works as it should. The problem is that when a user doesn't upload a file, I get an error that reads: "PHP Notice: No file uploaded in Unknown on line 0 PHP Warning: Cannot send session cache limit

Re: [PHP-WIN] Re: [PHP] php editor

2005-02-02 Thread Jason Barnett
Mikey wrote: -Original Message- It's true that googling would produce a list of PHP-happy editors, but the intended question seems to be more along the lines of "What does everyone like? Use? Prefer?" That's not something that's always found on lists you'd get off of google. No, b