Hello my name is Mathew and i have a group of people with me ready to code and design a mmorpg and need some help with a few things, i hope you can take the time to give me a nice explanation unlike tutorials.
I have started to code the game code first, the backend as you like.
I really need a lesson on OOP i tried many different tutorials but they weren't good at explain and got me confused.
Anyways i made a new class called register and a function called checkpassword, this checks to see if the passwords are matching? What i would like to know is how i can code this?
This is what i currently have but i need some checking it over from a pro.
<?php
// This is a class and function
// structure for the game.
// Comments are added for
// understanding.
class formValidate{
var $pass;
var $pass2;
function checkpassword($pass, $pass2){
if ($pass==$pass2) {
echo "Passwords match";
} else {
echo "No match";
}
}
}
?>
How do i use classes and functions in a new page ?
Thats what i have done, how do i, from the other page send the form variables over ?
Just a note : If anyone wants to help on the project then please do, we are lacking in php coders and we need some more experience.