Re: [PHP] netscape wont show form result
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I know what you are both saying and it was a poor explanation from me as to what > happened. let me explain it further because although the code is working now i > would like to know what happened. > We know the code should work the same regardless of browser since the server is > interpreting the code not the browser, however; > 1. the tables were all properly formatted. The script called for different includes > depending on the situation - these were all complete individual tables (remember ns > would display correctly, but only if the script excecuted to the end, ie corect > input from the user) > 2. the memory cache on ns was set to 5MG and the disk cache to over7MG - ample for > this situation. I currently have the memory cache set to 1MG and it still works. > 3. the only change i made between the first and second messages yesterday was to > remove the 'exit' line, which i had placed in the script at a point after user > input errors had been detected and before the email was sent. > 4.ns threw up blank pages whenever i deliberately made an error on the form > 5.once this line was removed ns worked as expected. ie worked as expected both > before and after the amendment > > Any thoughts??? > Steve > Stuart Dallas wrote: > > > On Wednesday, June 12, 2002 at 5:48:02 AM, you wrote: > > > > > An 'exit' directive had secretly sneaked into the script! which caused ns to > > > abort the rest of the script (as it should) while ie blissfully ignored > > > it(??). Anyway it all works now. Thanks again. > > > > Just thought I'd point out an error in your explanation. PHP is executed by the > > server, not by the browser. Therefore, IE cannot have "blissfully ignored" an > > exit directive since it never saw one. I think you've solved your problem by > > coincidence rather than logic - a very bad way to write code. As I am sure has been pointed out previously on this list, Netscape handled poorly formatted tables differently from IE. If the exit() caused a malformed table to be sent to Netscape, NS would not render the table, whereas IE will make an attempt to render based on the information received. You can demonstrate this by replacing the exit() and do a view source in both browsers. You will find the source is the same, but is rendered differently. Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] netscape wont show form result
I know what you are both saying and it was a poor explanation from me as to what happened. let me explain it further because although the code is working now i would like to know what happened. We know the code should work the same regardless of browser since the server is interpreting the code not the browser, however; 1. the tables were all properly formatted. The script called for different includes depending on the situation - these were all complete individual tables (remember ns would display correctly, but only if the script excecuted to the end, ie corect input from the user) 2. the memory cache on ns was set to 5MG and the disk cache to over7MG - ample for this situation. I currently have the memory cache set to 1MG and it still works. 3. the only change i made between the first and second messages yesterday was to remove the 'exit' line, which i had placed in the script at a point after user input errors had been detected and before the email was sent. 4.ns threw up blank pages whenever i deliberately made an error on the form 5.once this line was removed ns worked as expected. ie worked as expected both before and after the amendment Any thoughts??? Steve Stuart Dallas wrote: > On Wednesday, June 12, 2002 at 5:48:02 AM, you wrote: > > > An 'exit' directive had secretly sneaked into the script! which caused ns to > > abort the rest of the script (as it should) while ie blissfully ignored > > it(??). Anyway it all works now. Thanks again. > > Just thought I'd point out an error in your explanation. PHP is executed by the > server, not by the browser. Therefore, IE cannot have "blissfully ignored" an > exit directive since it never saw one. I think you've solved your problem by > coincidence rather than logic - a very bad way to write code. > > -- > Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[2]: [PHP] netscape wont show form result
On Wednesday, June 12, 2002 at 5:48:02 AM, you wrote: > An 'exit' directive had secretly sneaked into the script! which caused ns to > abort the rest of the script (as it should) while ie blissfully ignored > it(??). Anyway it all works now. Thanks again. Just thought I'd point out an error in your explanation. PHP is executed by the server, not by the browser. Therefore, IE cannot have "blissfully ignored" an exit directive since it never saw one. I think you've solved your problem by coincidence rather than logic - a very bad way to write code. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] netscape wont show form result
Well, my explanation to problem number 2 still stands. :) The browser cannot "ignore" code that you write on the server with PHP, such as exit. The HTTP response from the server is exactly the same regardless of browser unless you specifically take different actions according to the value of User-Agent. I find that observation curious. Are you certain that the exit didn't sneak in between tests? :) Chris Steve Fitzgerald wrote: >Thanks for your reply, but it was neither of these things :) >An 'exit' directive had secretly sneaked into the script! which caused ns to >abort the rest of the script (as it should) while ie blissfully ignored >it(??). Anyway it all works now. Thanks again. > >Chris Shiflett wrote: > > > >>You are experiencing two different problems. >> >>1) The blank page you are seeing is possibly due to incorrect HTML >>markup, where you are using tables incorrectly (most common problem for >>people). Check to make sure you have the same number of data cells in >>each row, that all your tag are properly ended, etc. Internet Explorer >>gives a best effort to render improper tables, and thus you might see >>content with IE and not Netscape. As a test, you might want to just >>remove all tables. >> >>2) The source you are getting is *not* source that would produce a blank >>page. What you are seeing is likely due to your cache settings not being >>high enough to cache the response, so Netscape would have to reload the >>resource to get the source. Since it was generated from a POST >>operation, you receive that warning. It doesn't make much sense to give >>you the *source* of that warning like it does, but that's the basic >>explanation. In short, seeing that in your source is similar to being >>unable to view the source, unless of course you are staring at a page >>that says "Data Missing" at the top with a brief explanation. :) >> >>Hope that helps. >> >>Chris >> >>Steve Fitzgerald wrote: >> >> >> >>>I. am testing a feedback form which consists of a single file with the >>>standard '>' >>>It has problems when using ns4.7. If the form is filled in correctly it >>>works and sends email, but it checks for required fields and correct >>>email address and if there is a mistake ns shows a blank page with the >>>following source: >>>-- >>>Missing Post reply data >>>Data Missing >>>This document resulted from a POST operation and has expired from the >>>cache. If you wish you can repost the form data to recreate the >>>document by pressing the reload button. >>>-- >>>The whole thing works fine in ie5.5 with correct output of error or >>>success messages and sending of email. Same result on localhost >>>(win98se/apache1.3.2/php4.0.6) and public (unix/zeus/php4.1.2) >>>What am i missing? Have i got some setting in ns that is preventing this >>> >>> >>>from working? >> >> >>> >>> >>> >>> >>> > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] netscape wont show form result
Thanks for your reply, but it was neither of these things :) An 'exit' directive had secretly sneaked into the script! which caused ns to abort the rest of the script (as it should) while ie blissfully ignored it(??). Anyway it all works now. Thanks again. Chris Shiflett wrote: > You are experiencing two different problems. > > 1) The blank page you are seeing is possibly due to incorrect HTML > markup, where you are using tables incorrectly (most common problem for > people). Check to make sure you have the same number of data cells in > each row, that all your tag are properly ended, etc. Internet Explorer > gives a best effort to render improper tables, and thus you might see > content with IE and not Netscape. As a test, you might want to just > remove all tables. > > 2) The source you are getting is *not* source that would produce a blank > page. What you are seeing is likely due to your cache settings not being > high enough to cache the response, so Netscape would have to reload the > resource to get the source. Since it was generated from a POST > operation, you receive that warning. It doesn't make much sense to give > you the *source* of that warning like it does, but that's the basic > explanation. In short, seeing that in your source is similar to being > unable to view the source, unless of course you are staring at a page > that says "Data Missing" at the top with a brief explanation. :) > > Hope that helps. > > Chris > > Steve Fitzgerald wrote: > > >I. am testing a feedback form which consists of a single file with the > >standard '>' > >It has problems when using ns4.7. If the form is filled in correctly it > >works and sends email, but it checks for required fields and correct > >email address and if there is a mistake ns shows a blank page with the > >following source: > >-- > >Missing Post reply data > >Data Missing > >This document resulted from a POST operation and has expired from the > >cache. If you wish you can repost the form data to recreate the > >document by pressing the reload button. > >-- > >The whole thing works fine in ie5.5 with correct output of error or > >success messages and sending of email. Same result on localhost > >(win98se/apache1.3.2/php4.0.6) and public (unix/zeus/php4.1.2) > >What am i missing? Have i got some setting in ns that is preventing this > >from working? > > > > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] netscape wont show form result
You are experiencing two different problems. 1) The blank page you are seeing is possibly due to incorrect HTML markup, where you are using tables incorrectly (most common problem for people). Check to make sure you have the same number of data cells in each row, that all your tag are properly ended, etc. Internet Explorer gives a best effort to render improper tables, and thus you might see content with IE and not Netscape. As a test, you might want to just remove all tables. 2) The source you are getting is *not* source that would produce a blank page. What you are seeing is likely due to your cache settings not being high enough to cache the response, so Netscape would have to reload the resource to get the source. Since it was generated from a POST operation, you receive that warning. It doesn't make much sense to give you the *source* of that warning like it does, but that's the basic explanation. In short, seeing that in your source is similar to being unable to view the source, unless of course you are staring at a page that says "Data Missing" at the top with a brief explanation. :) Hope that helps. Chris Steve Fitzgerald wrote: >I. am testing a feedback form which consists of a single file with the >standard '>' >It has problems when using ns4.7. If the form is filled in correctly it >works and sends email, but it checks for required fields and correct >email address and if there is a mistake ns shows a blank page with the >following source: >-- >Missing Post reply data >Data Missing >This document resulted from a POST operation and has expired from the >cache. If you wish you can repost the form data to recreate the >document by pressing the reload button. >-- >The whole thing works fine in ie5.5 with correct output of error or >success messages and sending of email. Same result on localhost >(win98se/apache1.3.2/php4.0.6) and public (unix/zeus/php4.1.2) >What am i missing? Have i got some setting in ns that is preventing this >from working? > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] netscape wont show form result
I. am testing a feedback form which consists of a single file with the standard '>' It has problems when using ns4.7. If the form is filled in correctly it works and sends email, but it checks for required fields and correct email address and if there is a mistake ns shows a blank page with the following source: -- Missing Post reply data Data Missing This document resulted from a POST operation and has expired from the cache. If you wish you can repost the form data to recreate the document by pressing the reload button. -- The whole thing works fine in ie5.5 with correct output of error or success messages and sending of email. Same result on localhost (win98se/apache1.3.2/php4.0.6) and public (unix/zeus/php4.1.2) What am i missing? Have i got some setting in ns that is preventing this from working? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php