Creating empty variables for input data

This is a discussion on Creating empty variables for input data within the PHP Language forums, part of the PHP Programming Forums category; Hello; I am creating a script that will be taking data from a POST and submitting the data to variables ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-26-2007
BradenM - Sonoma Computer
 
Posts: n/a
Default 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?


Reply With Quote
  #2 (permalink)  
Old 03-26-2007
BradenM - Sonoma Computer
 
Posts: n/a
Default Re: Creating empty variables for input data

I'm sorry. I posted in the php news group instead of PERL.
"BradenM - Sonoma Computer" <BradenM@SonomaComputer.com> wrote in message
news:DXVNh.2748$u03.2042@newssvr21.news.prodigy.ne t...
> 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?
>



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 04:30 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0