Wednesday, September 30, 2009

capture form post in ie using php

for over a week now i have been having the problem of capturing a form post in ie when coding in php. after searching forums, blogs, etc, i have found a solution. frankly, ie must stop use. this method can also be used when the button is an image. so, here is the solution.

if( $_POST['nameOfTextboxt'] || ( $_POST["buttonType"] == "nameOfButton" ) && ( count( $_POST > 0 ) ) ) {

//var_dump( $_POST );exit;
// do whatever you want to do
}

this worked for me

No comments: