PDA

View Full Version : help ugly flash post



jet
03-27-2008, 05:11 PM
this fucker fellis@devoffice.com wrote this for someone else who wants me to
fix the bullshit. i don't have the flash source, so i've got to hack in php.

swf post:
i=undefined
&your%5Fname=jules%26777%26Your+full+name%3A
&your%5Femail=x%40gmail%2Ecom%26777%26E%2Dmail+addr ess%3A
&telephone=9116661234%26777%26Your+phone%3A
&message=fuck%26777%26Your+message%3A
&field%5F2=biz%26777%26Company+name%3A
&recipient=fellis%40devoffice%2Ecom

i've had no luck reading name, or email:
echo($_POST['your%5Femail']);
echo($_POST['your_name']);

how can i read those two datas?

awol
03-27-2008, 07:07 PM
Are you sure the SWF is actually posting the data and not making a GET request?

I would start by doing:

print_r($_POST);

or

print_r($_GET);

and see what shows up.

jet
03-27-2008, 07:24 PM
post reports
Array ( [i] => undefined [your_name] => jet&777&Your full name: [your_email] => x@gmail.com&777&E-mail address: [telephone] => 2&777&Your phone: [message] => whhhh&777&Your message: [field_2] => nonya&777&Company name: [recipient] => fellis@devoffice.com )

print_r($_POST['your_name']); still returns nothing, but i think my free php host might be the reason

grrr

jet
03-27-2008, 09:22 PM
bleh


while ($request = current($_REQUEST)) {
if (key($_REQUEST)!='recipient') {
$pre_array=split ("&777&", $request);
$post_vars[key($_REQUEST)][0]=$pre_array[0];
$post_vars[key($_REQUEST)][1]=$pre_array[1];
}
next($_REQUEST);
}