Newbie help
Posted: Fri Feb 17, 2012 12:52 pm
Hi-
I'm fairly new to php specifically and I'm having a problem referencing object functions. My html has this:
Then my form has this:
And my DB object looks generally like this:
When I run all this, the content where my form is and anything after doesn't show up at all on the page. Whats wrong? I really appreciate the help!
I'm fairly new to php specifically and I'm having a problem referencing object functions. My html has this:
Code: Select all
<?php
$db = new DB();
?>Code: Select all
<form name='loginForm' method='post' action='<? $db->login(); ?>' onSubmit='validateForm();'>Code: Select all
<?php
Class DB {
private $dbUsername;
private $dbPassword;
private $dbServer;
function login() {
[do db interactions]
}
}