Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Mr.
    Mr. is offline
    Regular Coder
    Join Date
    Feb 2011
    Posts
    112
    Thanks
    8
    Thanked 4 Times in 4 Posts

    Unhappy Comments not updating correctly...

    on the right side bar, I have a comment section. Any registered user can make a comment on the contest using this. The problem is when I press return to submit the comment, the comment updates but it doesn't update with the proper CSS rules and overflows. When I refresh the page the CSS kicks in and puts the comment in place. Can anyone tell me what's going on here?? Please let me know if you need any of the code to look if you can't view the source and styles using the browser.

    Here is a page of the site with the comments in the right-side bar.

    www.MyFaceIsUgly.com

  • #2
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,352
    Thanks
    61
    Thanked 528 Times in 515 Posts
    You need this:

    PHP Code:
    $Code_Type 'PHP';

    $Correct = ($Forum) ? is_php() : or_html_css();

    print 
    $Correct
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!

  • #3
    Mr.
    Mr. is offline
    Regular Coder
    Join Date
    Feb 2011
    Posts
    112
    Thanks
    8
    Thanked 4 Times in 4 Posts

    thanks...

    Where do I put that in my code?

  • #4
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    Thats mean tango :/
    That code isn't real. The problem isn't a PHP issue, it's an HTML/CSS issue. Anything to do with how its rendered in a browser is beyond the scope of PHP itself.

    This particular issue sounds to be a Javascript one though, which I presume you are using for the submission.

  • #5
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,352
    Thanks
    61
    Thanked 528 Times in 515 Posts
    Sorry guys that was a bit mean wasn't it.

    Mr, you posted in a PHP forum about HTML / CSS. As I'm sure you're aware, there isn't much point posting in the wrong forum hence my PHP joke code which was supposed to get the point across.

    I didn't actually think you'd ask where to put it - If you read it again you'll see there is a message written in code looking format. Try reading it as if its english!
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •