29, May 2012

User Class Additional Fields/registration - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  Php User Class
Topic: User Class Additional Fields/registration
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: User Class Additional Fields/registration  (Read 1109 times)
Google dot what?
*
Gender: Male
Posts: 2
16 credits
Members referred : 0



« on: Apr 20, 2010, 12:51:07 am »

Hi,
Firstly, thanks for the class, it was just what the doctor ordered. I have got it working, but I am struggling a bit with the registration.

I created a few extra fields in my database table (Firstname, Surname) and if I capture the data directly (i.e. if the fields are already populated) then I can retrieve it pretty easily. What my problem is, is that when I try to register a new user, it falls over.

Code:
Fatal error: Call to a member function insertUser() on a non-object in /usr/www/users/justdo/ROH/pages/register.php on line 17

I have updated the $tbFields as follows:
Code:
  var $tbFields = array(
  'userID'=> 'UserID',
  'login' => 'UserName',
'Firstname' => 'Firstname',
'Surname' => 'Surname',
  'pass'  => 'Password',
  'email' => 'EmailAddress',
  'active'=> 'active'
  );

Which as far as I can see is all I should have to do.

Anyone know what I am doing wrong?
Thanks
John

PS: I'm quite proud of the way I created the login form. Check it out on www.justdone.co.za/ROH/
Google dot what?
*
Gender: Male
Posts: 2
16 credits
Members referred : 0



« Reply #1 on: Apr 21, 2010, 08:40:36 am »

Quote from: BoonDock
I have got it working, but I am struggling a bit with the registration.
Anyone know what I am doing wrong?

Ok.. so I found the error for myself.. *slaps hand HARD into forehead* ... I forgot that the call to the insertUser function was within a display function on my page. Fixed now..
JD
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=9891
Tags : error userclass registration register user Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  Php User Class
Topic: User Class Additional Fields/registration
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 29, 2012, 01:27:21 am





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.