Page 1 of 1

[SOLVED] $_POST['XYZ'] = 'something'; is this correct??

Posted: Sat Dec 22, 2007 4:33 am
by claws
$_POST['XYZ'] = 'something';

came across a situation. where it should appear that form as been submitted.
ofcourse we can avoid this case by using some other variables.
but assigning manually in my script like $_POST['XYZ'] = 'something'; will be ok or not?
its woking fine for me. will there be any chaos. if do like this?

assigning POST and GET variables manually allowed or not?

Posted: Sat Dec 22, 2007 5:45 am
by s.dot
Yup, you can assign anything you want to any variable or array value you want. Except for session data, then it's limited to the functionality of the serialize() function.

Posted: Sun Dec 23, 2007 4:15 am
by crystal ship
Aha, You can do that Jonny