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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
claws
Forum Commoner
Posts: 73
Joined: Tue Jun 19, 2007 10:54 am

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

Post 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?
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post 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.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
crystal ship
Forum Commoner
Posts: 36
Joined: Wed Aug 29, 2007 5:45 am

Post by crystal ship »

Aha, You can do that Jonny
Post Reply