Professional Web Applications Themes

Using a CGI form for editing a freeform hash structure - PERL Beginners

My holy grail for right now is to be able, from a CGI form, allow someone to: 1. display a hash of both key/value pairs, hashes, or arrays, fully expanded 2. be able to edit key/value pairs in the structure through the CGI form 3. add or delete key/value pairs, or empty sub-hashes Even a pretty display of a hash tree would be nice. In generic terms, here is where I am: I'm using XML::Mini to store some data structs in a very readable XML format on disk. The CGI, with the right params, will list info from all matching ...

  1. #1

    Default Using a CGI form for editing a freeform hash structure

    My holy grail for right now is to be able, from a CGI form, allow
    someone to:

    1. display a hash of both key/value pairs, hashes, or arrays, fully
    expanded
    2. be able to edit key/value pairs in the structure through the CGI form
    3. add or delete key/value pairs, or empty sub-hashes

    Even a pretty display of a hash tree would be nice.

    In generic terms, here is where I am:
    I'm using XML::Mini to store some data structs in a very readable XML
    format on disk. The CGI, with the right params, will list info from all
    matching hashes loaded from the XML files.

    What I'm missing is the ability to edit the information from a CGI, or
    create new data structures.

    Anyone have any general tips? (security concerns aside for the moment)


    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.4 (GNU/Linux)

    iD8DBQBA/aslubgCGkrWpN4RAo9xAKDKZ1/GbXq2gkT8haPYArTipqEwowCfd5zc
    4VMBtKkJ5FqjkOmgC182s94=
    =54/T
    -----END PGP SIGNATURE-----

    Shawn Guest

  2. #2

    Default Re: Using a CGI form for editing a freeform hash structure

    >>>>> "Shawn" == Shawn <com> writes:

    Shawn> 1. display a hash of both key/value pairs, hashes, or arrays, fully
    Shawn> expanded
    Shawn> 2. be able to edit key/value pairs in the structure through the CGI form
    Shawn> 3. add or delete key/value pairs, or empty sub-hashes

    Shawn> Even a pretty display of a hash tree would be nice.

    That's about 200 lines of code, unless there's some module I'm
    not aware of.

    I come up with this number from having written 200 magazine articles
    (and counting) and having to estimate a task based on whether or not
    I could cover it nicely in one magazine article, where 100 lines of
    code is just about right.

    --
    Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
    <com> <URL:http://www.stonehenge.com/merlyn/>
    Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
    See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
    Randal Guest

  3. Moderated Post

    Default Re: Using a CGI form for editing a freeform hash structure

    Removed by Administrator
    Shawn Guest
    Moderated Post

Similar Threads

  1. Difficulties Using the Freeform Tool
    By Linda Rathgeber in forum Macromedia Fireworks
    Replies: 3
    Last Post: September 29th, 04:08 PM
  2. passing complete form-structure to a cfc?
    By hkk in forum Coldfusion Flash Integration
    Replies: 1
    Last Post: October 8th, 03:17 PM
  3. MD5 Hash on HTML Form
    By Aasin in forum Macromedia Dynamic HTML
    Replies: 0
    Last Post: October 23rd, 06:28 PM
  4. Input form for creating hierarchy structure
    By Marco Alting in forum ASP
    Replies: 1
    Last Post: August 14th, 08:19 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139