Adding username to form html?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Simon Lloyd
    Senior Member
    • Apr 2008
    • 610
    • 3.7.x

    Adding username to form html?

    How do i add a username in this line so it will show on a form? i tried using a few things but none worked, any ideas?
    Code:
    <input type="hidden" name="item_name" value= [COLOR=Red]$username[/COLOR] " is helping us keep our forum running and increase our bandwidth."/>
    Regards,
    SImon
    Kind regards,
    Simon
    Microsoft Office Discussion
  • Gray Matter
    Senior Member
    • Jun 2005
    • 208
    • 3.7.x

    #2
    HTML Code:
    <input type="hidden" name="item_name" value="$bbuserinfo[username] is helping us keep our forum running and increase our bandwidth." />
    This will put the user viewing the form's user name into the input's value.
    Twitter

    Comment

    • Simon Lloyd
      Senior Member
      • Apr 2008
      • 610
      • 3.7.x

      #3
      Fantastic! thats it, i've tried loads of things but i've never touched html or php before.

      Once again thanks!

      SImon
      Kind regards,
      Simon
      Microsoft Office Discussion

      Comment

      Related Topics

      Collapse

      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎