Jump to content

Whats Wrong With This? Simple ?


mattbrown

Recommended Posts

Hi
ok im just writing a lil function to deal with changing a password and i think ive gone brain dead

the function gets 3 variables passed to it and i want it to check them like this

1 are variables $old, $new1, $new2 set
2 do variables $new1 and $new2 match
if so { do my stuff }

so i put

if((isset($old && $new1 && $new2))&&($new1 == $new)) {

i know ive made a silly mistake could somebody please put me out of my misery, maybe ive been sitting at this laptop too long :-(
Link to comment
https://forums.phpfreaks.com/topic/10347-whats-wrong-with-this-simple/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.