This looks simple to me but I dont know how to go about it, so any help will be appreciated.
I have a form which when submitted sends firstname,lastname,email and other details to signup.php . Now to make my codes more secure, i have dont this;
signup.php would accept the values of the user input and send the value to a php class file located at secure location like this
http://www.z.com/account/index.html // not secure
http://www.z.com/account/[b]signup.php[/b] // secure
http://www.z.com/account/[b]secure/SignupClass.php[/b] // secure
the SignupClass.php has datbase access codes and other secure stuff. Now the problem is when I use this code in signup.php
Code: Select all
include ("secure/SignupClass.php");
$signupclass = new SignupClass();
$signupclass ->signupClass($first_name, $last_name, $email, $password);Code: Select all
Warning: Missing argument 1 for signupclass()Code: Select all
$first_name = $_REQUEST['first_name'];
$last_name = $_REQUEST['last_name'];
$email1 = $_REQUEST['email1'];
$email2 = $_REQUEST['email2'];
$password1 = $_REQUEST['password1'];
$password2 = $_REQUEST['password2'];Please tell me how to go about this.
Thank you,