Creating empty variables for input data

Discussion in 'Perl Misc' started by BradenM - Sonoma Computer, Mar 26, 2007.

  1. Hello;
    I am creating a script that will be taking data from a POST and submitting
    the data to variables which are placed within a hash for string to data
    association. Then, using HTML::Table and Mail::Sendmail, the data is parsed
    into an html table and then an email is created and send to a recipient.
    So, my question is this; How do I take the input from a post form and have
    the variables pick up the data and process it into a hash?

    my $name = ;
    my $instock = ;
    my describe = ;
    # Hash to hold inventory data
    my %table_data = (
    model => '$modelnumber',
    item => '$name',
    available => '$instock',
    description => '$describe',
    );

    This is all the code I have written thus far, any pointers or suggestions
    for this project?
    BradenM - Sonoma Computer, Mar 26, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John

    empty/non-empty element

    John, Jul 15, 2003, in forum: XML
    Replies:
    1
    Views:
    1,008
    Klaus Johannes Rusch
    Jul 16, 2003
  2. Lukas
    Replies:
    3
    Views:
    780
    spiff
    Nov 10, 2005
  3. Marcia Hon

    Check if a directory is empty and empty it

    Marcia Hon, Feb 8, 2004, in forum: C Programming
    Replies:
    8
    Views:
    561
    Dave Thompson
    Feb 14, 2004
  4. Replies:
    9
    Views:
    922
  5. Atlas
    Replies:
    0
    Views:
    116
    Atlas
    Nov 19, 2004
Loading...

Share This Page