Announcement

Collapse
No announcement yet.

(vB2)Calling vB Variables Through form

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • (vB2)Calling vB Variables Through form

    Hi,

    I was wondering if anyone knew how to call a vB variable, say $bbuserinfo['username']. I need a form get the Person's who is logged in, username.

    I need to insert the person's username into a database table.
    Code:
    <input type="hidden" name="username" value="THE USER'S USERNAME">
    Can anyone help?

  • #2
    HTML Code:
    <input type="hidden" name="username" value="$bbuserinfo[username]">

    Comment


    • #3
      Originally posted by squall14716
      HTML Code:
      <input type="hidden" name="username" value="$bbuserinfo[username]">

      God damn, i knew it would be something stupid like that, ive been doing $bbuserinfo['username'] instead of $bbuserinfo[username] .

      Cheers mate.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X