Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2008
    Location
    Pittsburgh, PA
    Posts
    237
    Plugin Contributions
    1

    Default Add parameters to zen_draw_textarea_field() without emptying field

    <?php echo zen_draw_textarea_field('comments', '45', '3', $_SESSION['comments'],'accesskey="n"');

    ^is the "$_SESSION['comments']" part of that dangerous or a security flaw to do?

    I want to add the accesskey anchor tag attribute to the comments box in the checkout without "dropping" (overwriting with blank), the comment box context between the shipping page and the payment page...

    when I have...
    <?php echo zen_draw_textarea_field('comments', '45', '3', ,'accesskey="n"');
    or
    <?php echo zen_draw_textarea_field('comments', '45', '3', '','accesskey="n"');

    it redraws the field as empty, and I loose any form data entered on the first check out step.

    Thanks,
    b

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Add parameters to zen_draw_textarea_field() without emptying field

    Quote Originally Posted by wolfderby View Post
    <?php echo zen_draw_textarea_field('comments', '45', '3', $_SESSION['comments'],'accesskey="n"');

    ^is the "$_SESSION['comments']" part of that dangerous or a security flaw to do?
    No. This input gets sanitised before use.

    Quote Originally Posted by wolfderby View Post
    when I have...
    <?php echo zen_draw_textarea_field('comments', '45', '3', ,'accesskey="n"');

    it redraws the field as empty, and I loose any form data entered on the first check out step.
    The reason it redraws as empty is because you've removed the $_SESSION['comments'] field.

    Cheers
    Rod

  3. #3
    Join Date
    Dec 2008
    Location
    Pittsburgh, PA
    Posts
    237
    Plugin Contributions
    1

    Default Re: Add parameters to zen_draw_textarea_field() without emptying field

    Thanks!

 

 

Similar Threads

  1. echo customer data without field
    By southpacific in forum Managing Customers and Orders
    Replies: 5
    Last Post: 7 Mar 2009, 09:12 AM
  2. Replies: 1
    Last Post: 7 Nov 2008, 08:10 AM
  3. Logoff Without Emptying Cart
    By KGZotU in forum General Questions
    Replies: 3
    Last Post: 4 Mar 2007, 06:48 AM
  4. function zen_draw_textarea_field
    By JeffD in forum General Questions
    Replies: 3
    Last Post: 26 May 2006, 02:33 PM

Posting Permissions

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