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 2 of 2
  1. #1
    New Coder
    Join Date
    Apr 2011
    Location
    Canada
    Posts
    15
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Smile Write to <p> with JS or PHP

    How to I write to a <p> with JavaScript or PHP? For example, if someone entered a form (like a comment), it would display the time. Thanks to anyone who can help.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,793
    Thanks
    6
    Thanked 1,022 Times in 995 Posts
    That would be done with PHP. But semantically a paragraph element is wrong in this case (I suppose you wanna display the date the post was made on), you should use either span or div, whichever makes more sense in the context (i. e. inline or block-level element).


  •  

    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
    •