How can I pass a value/variable to $_POST? Im not getting all data to my php function. So i just figured out to pass them explicitly.
Can anyone tell me how this is done?
How can I pass a value/variable to $_POST? Im not getting all data to my php function. So i just figured out to pass them explicitly.
Can anyone tell me how this is done?
收起
Check what's in $_POST
and then check your HTML form if it's correct.
print '<pre>';
print_r($_POST);
print '</pre>';
Or you can directly assign value to $_POST
as it's (almost) a normal array:
$_POST['test'] = 'hi';
But I suppose that's not what you're looking for.
报告相同问题?