PHP Tutorials: Register & Login (Part 11): Register Users (Part 1)

preview_player
Показать описание

Official site

Twitter
Рекомендации по теме
Комментарии
Автор

i love all your tutorials, your one of the best programmer i salute you

lazymacs
Автор

Love your tutorials... You are a really good php programmer

RobbinWesterlund
Автор

Really great tutorials, I've learned some quite good things about working with arrays and functions, thanks ! ) Keep that great work.

Kontrbandist
Автор

Watched, thanks for all your time and work Alex

CranberryMuffinmanz
Автор

He keeps saying "Welcome back!" .... but I haven't gone anywhere! 8^D Great work Alex! I'm learning a TON!

mikeu
Автор

Just a thought: instead of creating a new associative array ($register_data) why not use the $_POST associative array that already exists and just unset() the confirm_password? This way, if you add a new field to the form, it'll automatically be added to the $field and $data strings for the query

Just means you don't need to worry about updating the $register_data array when you add a new field to the form

markwilkinson
Автор

Hi Thanks for a great tutorial
I just have 1 question
Im trying to modify the unique validation it  checks if there is an existing record using $check = $this->_db->get($rule_value, array($item, '=', $value));
I want to modify the where to add another condition. How can I add it to this?
I tried this one below but I cant make it work
$check = $this->_db->get($rule_value, array($item, '=', $value, ' && ', $rule_value, '=', $source[$rule_value]));

MrJrTibayan
Автор

It basically means $item will be passed as reference. "&" is simply the sign for this :-].

djausk
Автор

Query will have problem if lastname not entered so you better not use back ticks. back ticks are not necessary to use anyway

BaliLandandVilla
Автор

the register page action was left blank, check that yours is the same. register.php

form action="" method="post"

dashbyictfd
Автор

Everything is working fine except for my errors array. When I reload the page it still prints the errors I made. Aren't arrya's supppose to empty when you reload?

bitiminicik
Автор

I keep getting Notice: Undefined index: last_name in on line 45

Fatal error: Call to undefined function register_user() in on line 49. please help!

bobbysmith
Автор

Warning: filter_var() expects parameter 2 to be long, string given in on line 28

QuranListeners
Автор

I have a problem, when press the register button, it takes me to the login.php page. Please help!!

HugoRamirezSoto
Автор

Why did you use the &$item? What purpose has the &?

dxcqcv
Автор

my errors are already displaying.. i'm have not input any data yet..

ParanoiaAndroid
Автор

Parse error: syntax error, unexpected 'last_name' (T_STRING), expecting ']' in register.php

subhrokr
Автор

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' ???

VirtousOn
Автор


Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in

idowedo
Автор

header('Location: index.php');

latlov