Jump to content


Photo

Can anyone tell me the meaning of this code


  • Please log in to reply
2 replies to this topic

#1 sahel

sahel
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 14 September 2006 - 08:11 PM

Hi,

Im very very new to php, im not sure if this is the right forum to post a question like this.

can someone tell me what this line of code says?


if((isset($_POST['action']) && $_POST['action']=='edit') || ($updateloc == true && $_POST['action']=='update'))


Thanks
Sahel


#2 gijew

gijew
  • Members
  • PipPipPip
  • Advanced Member
  • 240 posts
  • LocationCalifornia

Posted 14 September 2006 - 08:13 PM

if((isset($_POST['action']) && $_POST['action']=='edit') || ($updateloc == true && $_POST['action']=='update'))

If the VARIABLE `$_POST['action']` has been set and `$_POST['action']` is EQUAL to `edit` OR the VARIABLE `$updateloc` is EQUAL to `true` AND $_POST['action'] is EQUAL to `update`
I'm considered good looking in some countries

#3 sahel

sahel
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 14 September 2006 - 08:22 PM



Brilliant.. that makes sence now..

Thanks gijew
Sahel




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users