Reply
data not posting with IE, being cached?
Old 08-11-2004, 03:45 PM data not posting with IE, being cached?
Novice Talker

Posts: 7
Trades: 0
Hi,

I wanted to chat with a friend (they can't use any chat apps) and I wanted to work on my php skills (still rather new to php) so I made a basic chat script that lets them enter some text, writes it to a file, then we can both see it.

Works great in Mozilla, but when in IE, you can only say I or two things, then the page keeps getting returned with nothing... I have used the following:

header("Cache-Control: private");
header("Pragma: no-cache");

STILL won't work... anyone got any ideas?

Here is the script in action (to delete text, enter sdf in the text box):
http://www.robj.ca/test/

and the script:
http://www.robj.ca/test/chat.rar

Please, help
jimmybeaches is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 08-11-2004, 07:22 PM
Skilled Talker

Posts: 63
Trades: 0
the error seems to be related to HTML. whenever i submit the form using Enter - it does not work. if i click the Submit button - it always works.

you should give your second form a name and close it with </form> somewhere.
antoshka is offline
Reply With Quote
View Public Profile Visit antoshka's homepage!
 
Old 08-11-2004, 10:43 PM
Novice Talker

Posts: 7
Trades: 0
Hi antoshka,

Thanks for the reply. I see what you mean about the difference when pressing Enter and clicking submit.

The second form was already closed and I have now given it a name, but still nothing.

Any other ideas?
jimmybeaches is offline
Reply With Quote
View Public Profile
 
Old 08-16-2004, 01:13 PM
Novice Talker

Posts: 7
Trades: 0
I found the answer:

use

PHP:
if ($_SERVER['REQUEST_METHOD'] == 'POST') {



instead of

PHP:
if ($_POST['Submit']) {
jimmybeaches is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to data not posting with IE, being cached?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.09941 seconds with 13 queries