Page 2 of 2
Posted: Fri Feb 27, 2004 4:12 pm
by Illusionist
j/w wondering about the english part because in my Latin class today we were talking about how common it is for people to use inccorect english, which everyone does, but anyways...
Try removing that if (!empty($_POST['shout_message'])) stuff, because if already ahve an if statement to chek if they submitted and to check if the message is over 6 chars long...
Posted: Fri Feb 27, 2004 4:16 pm
by vigge89
Illusionist wrote:j/w wondering about the english part because in my Latin class today we were talking about how common it is for people to use inccorect english, which everyone does, but anyways...
Try removing that if (!empty($_POST['shout_message'])) stuff, because if already ahve an if statement to chek if they submitted and to check if the message is over 6 chars long...
i wrote that in a hurry, you to?
nope, still not working, and i had that if statement there for a reason;
i didn't want to output "Your shout must not contain less than 6 characters!" when users even hasn't tried to shout

Posted: Fri Feb 27, 2004 4:26 pm
by vigge89
i've edited some of the code, and have now figured out that the $_POST['shout_message'] is empty, which means that the message isn't submitted by the form, could it be that IE can't submit forms to other frames?
Posted: Fri Feb 27, 2004 4:33 pm
by Illusionist
well, its not just IE, i couldn't get it to work in firefox either. LOL, ya i guess i did write that a littel fast! And what i meant was remove the if !empty statement, because you have have an if statement setup to check wheter they submitted the post, by using isset($_POST['submit']) and checkthig that there is something in the message by checking to see if the length is over 6 chars long. So you can remove that first IF statement (empty one) and put the one where it checks if user is still logged in in the one where it checks if submit and message. If that made any sense!
Posted: Fri Feb 27, 2004 4:43 pm
by vigge89
Tried using a normal form (no target etc), worked in IE, so I guess that there aren't any target-field for forms, i have to redesign the shoutbox...
It's strange that my firefox supported it
thanks anyway
Posted: Fri Feb 27, 2004 4:48 pm
by Illusionist
lol, np