php beginners tutorial
Tuesday, 7 April 2015
simple registration form with MySql Connection
create reg.php
prepare($sql); $q->execute(array(':sas'=>$fname,':asas'=>$lname,':asafs'=>$age)); header("location: index.php"); ?>
create index.php
0 ) { echo '
'; foreach($_SESSION['ERRMSG_ARR'] as $msg) { echo '
',$msg,'
'; } echo '
'; unset($_SESSION['ERRMSG_ARR']); } ?>
First Name
Last Name
Age
create connect.php
setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); ?>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment