JimmyS Posted August 25, 2006 Share Posted August 25, 2006 OK, I am using a contribution for delivery dates but I need to change it to have different delivery dates depending on the customers zip code. I can get it to do it, but I can't seem to figure out how to get the zip code into the function to get it to work. Basically what I think I need to know is what is the variable that contains the zip code on the Delivery Information page and how do I pass it to the class (shipsched.php) from the contribution (I am still learning PHP). Any help appreciated. Link to comment Share on other sites More sharing options...
brianstorm Posted August 25, 2006 Share Posted August 25, 2006 try pasting this into application_top.php (remember they are different for catalog & admin directories) ... the code is courtesy of richard bently and should pint out get & post variables at the top the page.... you can uncomment the other options too function px(&$arr, $arr_name) { if (sizeof($arr)) { print "---------- <br />"; print $arr_name . "<br />"; } foreach($arr as $key => $v) { print " ".$key." -> '".$v."'<br />"; } } px($_GET, "GET"); px($_POST, "POST"); // px($_COOKIE, "COOKIE"); // px($_SERVER, "SERVER"); // px($_ENV, "ENV"); // px($_FILES, "FILES"); with ten thousand dollars we'll all be millionaires Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.