RE: [PHP] Re: Handling an email form
| From: | Ford, Mike | Date: | Thu, 23 Jan 2014 16:48:16 +0000 |
| Subject: | RE: [PHP] Re: Handling an email form | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-322736@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Jim Giner [mailto:jim.giner@albanyhandball.com]
> Sent: 21 January 2014 14:08
> To: php-general@lists.php.net
> I perhaps misled you with my reference to GET. Actually it seems to
> grab my input tag contents and create what LOOKS like the query
> portion
> of a normal GET URL. In this case it is just a string that looks
> like this:
>
> pq_qty_20=22&pq_qty_18=18&pq_qty_19=19&btn=Post+Email+Purchases
>
> So - with this my script simply breaks it down by "&" and then by
> "=" to
> get my values for updating my db. In this case there are 3 sets of
> data
> to do updates with.
You may want to consider PHP's parse_str() function...?
Cheers!
Mike
--
Mike Ford,
Electronic Information Developer, Libraries and Learning Innovation,
403a Leslie Silver Building, City Campus, Leeds Metropolitan University,
Woodhouse Lane, LEEDS, LS1 3ES, United Kingdom
E: m.ford@leedsmet.ac.uk T: +44 113 812 4730
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm