Webking
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Many bots come to this site. We ping all post everyday. You will got indexed fast!
 
HomeSearchLatest imagesRegisterLog inSEO
Get top 10 ranking in Google within few months.
Mix Link Building packages-Monthly $150 -$450 per month

 

 help with registration page

Go down 
AuthorMessage
jasim




Posts : 10
Join date : 2009-12-14

help with registration page Empty
PostSubject: help with registration page   help with registration page EmptyMon Dec 21, 2009 9:55 am

hello all im new and im doing a prject and i have got everything thing sorted aprt from this snag, a user has to register with the website for them to log in but it appears my code does not work

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<?php
$Username = $_POST["txtusername"];
$Firstname = $_POST["txtuserfirstname"];
$LastName = $_POST ["txtuserlastname"];
$Password = $_POST ["txtpword"] ;

$adoCon = new COM("ADODB.Connection");


$here = dirname(__FILE__);
echo $here;

$adoCon->Open("Provider=Microsoft.ACE.OLEDB.12.0;
Data Source=D:\\wwwdata\\DSA\\2009-2010\\0db\\Hv001341\\intermedhv00134111.accdb");


//try {
$adoCon->Execute
'INSERT INTO tblusers'
(username, password, userfirstname, userlastname)
VALUES
('$Username', '$Password', '$Firstname', '$LastName')
// );

//catch(Exception $e)
//{

//echo $e;
//echo 'Sorry - There was a problem with adding the data to the database.<br />';
//}
$adoCon->Close();
$adoCon = null;

?>
<body>
</body>
</html>

thanks for any help given
Back to top Go down
 
help with registration page
Back to top 
Page 1 of 1
 Similar topics
-
» For Modified date of web page
» How make 404 page
» On page tools
» onpage optimization
» how to stick in first page?

Permissions in this forum:You cannot reply to topics in this forum
Webking :: Website Development :: Programming / Scripting / Coding Forum-
Jump to: