Re: [PHP] Help with header function
LOL...thanks ed...figured it out last night... don't need to do a file_exists since i capture file_name in my db...I do a query before the insert to see if the file_name entered in the form, matches any of the file_names stored in mySQL. if the count of the record set > 0 then the file exists, and redirect using header: Location...etc,etc. If count=0 then insert form contents into docuemnt and copy file to folder. Thanks Shane "Ed Lazor" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > LOL Yea, it's always much easier if we have actual code to work from rather > than taking guesses in the dark. > > -Original Message- > Why do I get the feeling I'm playing that "mind bender" game where you have > to guess the right combination within so many turns? LOL > > > This message is intended for the sole use of the individual and entity to > whom it is addressed, and may contain information that is privileged, > confidential and exempt from disclosure under applicable law. If you are > not the intended addressee, nor authorized to receive for the intended > addressee, you are hereby notified that you may not use, copy, disclose or > distribute to anyone the message or any information contained in the > message. If you have received this message in error, please immediately > advise the sender by reply email and delete the message. Thank you very > much. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Help with header function
LOL Yea, it's always much easier if we have actual code to work from rather than taking guesses in the dark. -Original Message- Why do I get the feeling I'm playing that "mind bender" game where you have to guess the right combination within so many turns? LOL This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with header function
Don't be so sure. :) I did a test with two location headers, one with and one without a space, both worked properly. But when I purposfully misspelled "Location" to introduce a syntax error, the page did not redirect or give an error. This is exactly the result he was reporting so clearly there is a syntax error within his header text.. just not the one you thought it was. Why do I get the feeling I'm playing that "mind bender" game where you have to guess the right combination within so many turns? LOL -Kevin - Original Message - From: "Lazor, Ed" <[EMAIL PROTECTED]> To: "'Kevin Stone'" <[EMAIL PROTECTED]>; "PHP-general" <[EMAIL PROTECTED]> Sent: Monday, June 10, 2002 2:00 PM Subject: RE: [PHP] Help with header function > I'm pretty sure it was the lack of a space in the header field between > Location: and the actual url. > > -Original Message- > > The only thing I can think of is that you have a syntax error in the header. > -Kevin > > > > > > > > > > > > > > > > > > This message is intended for the sole use of the individual and entity to > whom it is addressed, and may contain information that is privileged, > confidential and exempt from disclosure under applicable law. If you are > not the intended addressee, nor authorized to receive for the intended > addressee, you are hereby notified that you may not use, copy, disclose or > distribute to anyone the message or any information contained in the > message. If you have received this message in error, please immediately > advise the sender by reply email and delete the message. Thank you very > much. > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Help with header function
I'm pretty sure it was the lack of a space in the header field between Location: and the actual url. -Original Message- The only thing I can think of is that you have a syntax error in the header. -Kevin This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with header function
I don't get an error message...but the page doesn't automatically forward to the redirected url. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with header function
On Monday, June 10, 2002 at 8:03:40 PM, you wrote: > header("Location:http://www.mysite.com/file_exists.php";); You should have a space after Location:... header("Location: http://www.mysite.com/file_exists.php";); If that's not it, please post the error/what happens. We are not mind readers. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php