Announcement

Collapse
No announcement yet.

Parse error

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

  • Parse error

    Why am I getting a parse error on this line?

    PHP Code:
    print_label_row($vbphrase['show_only_duplicate'],'<label for=\"$vbphrase['password']\"><input type=\"checkbox\" name=\"$dupepassword\" id=\"$dupepassword\" value=\"1\" tabindex=\"1\" />$vbphrase['password']</label>'); 
    Thank you.
    Sig? What sig?

  • #2
    Where has the size come from?

    Comment


    • #3
      Originally posted by Game Wizards
      Where has the size come from?
      Damn WYSIWYG!
      Sig? What sig?

      Comment


      • #4
        You are not escaping correctly.

        Code:
        print_label_row($vbphrase['show_only_duplicate'],'<label for=\"$vbphrase[\'password\']\"><input type=\"checkbox\" name=\"$dupepassword\" id=\"$dupepassword\" value=\"1\" tabindex=\"1\" />$vbphrase[\'password\']</label>');
        Though, that might not work, try it without the ''s at all if it doesnt.

        Comment


        • #5
          Thanks merk.
          You were right, it still didn't work like that but it does with none or the "s at all.
          I just don't like html like that
          It works rigt now as I have no spaces in any of the values but if that changes its tits up again.
          Sig? What sig?

          Comment


          • #6
            PHP Code:
            print_label_row($vbphrase['show_only_duplicate'],"<label for=\"$vbphrase[password]\"><input type=\"checkbox\" name=\"$dupepassword\" id=\"$dupepassword\" value=\"1\" tabindex=\"1\" />$vbphrase[password]</label>"); 
            vBulletin.org Moderator
            The Sisters Three Charmed Discussion Forums

            Comment


            • #7
              Thanks so much, NTLDR.

              That's perfect.

              PHP Code:
              print_label_row($vbphrase['show_columns'],"<table><tr><td><label for=\"$vbphrase[id]\"><input type=\"checkbox\" name=\"showcolid\" id=\"showcolid\" value=\"1\" tabindex=\"1\" />" $vbphrase[id] . "</label></td><td><label for=\"$vbphrase[password]\"><input type=\"checkbox\" name=\"showcolpassword\" id=\"showcolpassword\" value=\"1\" tabindex=\"1\" checked=\"checked\" />" $vbphrase[passwords] . "</label></td></tr><tr><td><label for=\"$vbphrase[username]\"><input type=\"checkbox\" name=\"showcolusername\" id=\"showcolusername\" value=\"1\" tabindex=\"1\" checked=\"checked\" />" $vbphrase[username] . "</label></td><td><label for=\"$vbphrase[usergroup]\"><input type=\"checkbox\" name=\"showcolusergroup\" id=\"showcolusergroup\" value=\"1\" tabindex=\"1\" checked=\"checked\" />" $vbphrase[usergroup] . "</label></td></tr><tr><td><label for=\"$vbphrase[action]\"><input type=\"checkbox\" name=\"showcolaction\" id=\"showcolaction\" value=\"1\" tabindex=\"1\" checked=\"checked\" />" $vbphrase[action] . "</label></td><td><label for=\"$vbphrase[info]\"><input type=\"checkbox\" name=\"showcolinfo\" id=\"showcolinfo\" value=\"1\" tabindex=\"1\" />" $vbphrase[info] . "</label></td></tr><tr><td><label for=\"$vbphrase[ip_address]\"><input type=\"checkbox\" name=\"showcolip\" id=\"showcolip\" value=\"1\" tabindex=\"1\" />" $vbphrase[ip_address] . "</label></td><td><label for=\"$vbphrase[date]\"><input type=\"checkbox\" name=\"showcoldate\" id=\"showcoldate\" value=\"1\" tabindex=\"1\" checked=\"checked\" />" $vbphrase[date] . "</label></td></tr></table>"); 
              Sig? What sig?

              Comment

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