News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Sameer Borate's Blog:
Raw vs. cooked PHP $_POST variables
September 20, 2010 @ 10:15:16

Sameer Borate as a new post to his blog today looking at some of the quirks he's found when dealing with the $_POST superglobal in PHP.

A little quirk of PHP $_POST var I encountered while fixing a Salesforce web-to-Lead bug. A Wordpress site was using a form to submit user requests to the Salesforce web-service. The form that submitted the data had the following fields along with the others. The problem was with the multi-select field, only the last value selected in the multi-select was getting captured.

He investigated and found that his code was echoing out all of the values, but wasn't using the "field_name[]" notation with the square brackets to send back multiple values to PHP. Changing this and trying again, he noticed it still wasn't working as expected (with Salesforce). He figured out they're using "raw" versus "cooked" handling of the POSTed variables. Check out the rest of his post to find out what that means.

1 comment voice your opinion now!
post variable raw cooked salesforce handling


blog comments powered by Disqus

Similar Posts

Job Posting: CTI Teksource Seeks PHP Developers (New York, NY)

Job Posting: PRI Technology (Recruiter) Seeks Senior PHP Developer (New York, NY)

Job Posting: Weatherly Technologies (Recruiter) Seeks Senior PHP Developer (NYC MEtro)

Job Posting: Keen Consulting (Recruiter) Seeks Senior PHP Developer (Toronto, Ontario)

Derick Rethans' Blog: Variable tracing with Xdebug


Community Events

Don't see your event here?
Let us know!


interview part2 opinion project community list framework configure php7 example application yii2 introduction podcast language laravel api series composer symfony

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework