Shoutbox @ vigge.net not working

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post 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...
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post 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? :P

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 :?
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post 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?
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post 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!
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post 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
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

lol, np
Post Reply