Creating empty variables for input data

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • BradenM - Sonoma Computer

    Creating empty variables for input data

    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

    #2
    Re: Creating empty variables for input data

    I'm sorry. I posted in the php news group instead of PERL.
    "BradenM - Sonoma Computer" <BradenM@Sonoma Computer.comwro te in message
    news:DXVNh.2748 $u03.2042@newss vr21.news.prodi gy.net...
    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?
    >

    Comment

    Working...