let us come back to the initial string .. "approved=yes&error=&authnumber=025968&transactionnumber=313869";
after the statement "for (@reset($value_array); list($key1,$value1)[EMAIL PROTECTED]($value_array);)",
currently in the array $value_array, it contains such key<->content
key1=0, $value1="approved=yes"
key1=1, $value1="error="
key1=2, $value1="authnumber=025968"
key1=3, $value1="transactionnumber=313869"
therefore current $approved = $value_array['approved'] ; is empry.. i cannot get "yes" ..
I definately want to get something like $value_array['approved'] is "yes" $value_array['error'] is "" $value_array['authnumber'] is "025968" $value_array['transactionnumber'] is "313869"
please think about it once more..
thanks again..
% for (@reset($value_array); list($key1,$value1)[EMAIL PROTECTED]($value_array);) % { % $first = $value1; % list($key1,$value1)[EMAIL PROTECTED]($value_array); % $second = $value1;
I don't think you need to do this, though, because ... % % if($first == "approved") % { % $approved = $second; % } [snip]
... I don't think you need to go through all of these if() tests. You have each key and value in your value_array; you should be able to just say
$approved = $value_array['approved'] ;
and so on.
This is untested and I am in a hurry, but I hope it puts you on the right track.
with best wishes
Zheng Sun
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php