Ahhh ... I see your point I could also do that by making a link refresh, or the meta refresh tag ... that one I have
----- Original Message ----- From: "Rich Gray" <[EMAIL PROTECTED]> To: "Max Graham" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, November 28, 2002 9:09 AM Subject: RE: [PHP-WIN] Redirect browser to another URL? > Hi Max > > My comment on switching off javascript was just to warn you that there are > users/browsers out there who have it switched off all the time so your > script won't work for these users... Doing it all in PHP i.e. server side > will avoid that problem. > > From what you have described I would start looking at using a database to > store the comments - it'll make your life much easier. > > Rich > -----Original Message----- > From: Max Graham [mailto:[EMAIL PROTECTED]] > Sent: 28 November 2002 15:19 > To: Rich Gray; [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] Redirect browser to another URL? > > > The original issue was, I tried to have the single page to display any > previous comments, and then a form to add comments. Then, once it was > submitted, it would submit itself. The page was supposed to detect whether > any new data had been submitted, by way of a hidden input in the form, and > if so, would first write to the output file and then display the output > file. It wasn't a text file in this case, it was actually an HTML snippet I > would get the script to grab with the include() function. What I had to do, > because I suspected there wasn't enough of a delay between > writing/flushing/closing the file and including it (maybe it thought the > include file was still locked from being written to), was split the file > into two separate files. The first comments page shows the past comments and > the submission form. The form submits to a separate file that writes to the > include file and then displays the only displayed code in the page. In the > header I have a refresh function, and in the body tag I have the onload > handler set to trigger the refresh function. > > I just realized, though, the setTimeout may be redundant ... :P I'm still > managing to learn slowly ... like most things I do, it's all self-taught, > and you're right -- I haven't even touched SQL databases. My only > familiarity with databases was with FoxPro before it became "Visual FoxPro" > (ominous music here). And I haven't even toyed with turning off Javascript > ... there are services I'll turn off, but javascript ... for all its > resemblance to C++ with bipolarism, I have been tempted to turn it off, but > it just somehow reminds me of that scene from the Indiana Jones movie where > he's trying to weigh how much sand in the bag will equal the weight of the > statue to avoid triggering the booby traps ... > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php