Hi,
Can anyone cast a fresh pair of eyes over this one...
Im trying to insert only one item into a particular column in my database.
I conduct a query to select the appropriate the row (which is successful) but for some reason, the DB is not populated. ColdFusion does not report any errors though....?
Im passing via form variables..
Heres the code:
----------------------------------------------------------
CreatePage.cfm
<CFFORM ACTION="AuthenticateUser.cfm?cfid=#cfid#&cftoken=#cftoken#" METHOD="POST">
Please enter Your Username <CFINPUT TYPE="Text" NAME="UserName" REQUIRED="NO"><BR>
Please ener your password <CFINPUT TYPE="password" NAME="Password" REQUIRED="NO"><BR>
If you have forgotten your password <A href="ForgottenPassword.cfm"> Retreive your Password </A>
<INPUT TYPE="submit" VALUE="process">
----------------------------------------------------------
----------------------------------------------------------
InsertIntoDB.cfm
<CFQUERY DATASOURCE = "ONLINE" NAME = "GetUser">
SELECT UserName
FROM Users
WHERE UserName = '#Client.UserName#'
</CFQUERY>
<head>
<title>Untitled</title>
</head>
<body>
<CFIF #GetUser.RecordCount# EQ 1>
<CFINSERT DATASOURCE = "Online"
TABLENAME = "Users"
FORMFIELDS = '#Form.Title#'>
</CFIF>
<CFOUTPUT>
Your website now has a heading of <B>#title#</b><BR>
</cfoutput>
---------------------------------------------------------
If anyne can help...PLEASE!!!!!
Thanks
Sam
<INPUT TYPE="reset" VALUE="Clear">
Can anyone cast a fresh pair of eyes over this one...
Im trying to insert only one item into a particular column in my database.
I conduct a query to select the appropriate the row (which is successful) but for some reason, the DB is not populated. ColdFusion does not report any errors though....?
Im passing via form variables..
Heres the code:
----------------------------------------------------------
CreatePage.cfm
<CFFORM ACTION="AuthenticateUser.cfm?cfid=#cfid#&cftoken=#cftoken#" METHOD="POST">
Please enter Your Username <CFINPUT TYPE="Text" NAME="UserName" REQUIRED="NO"><BR>
Please ener your password <CFINPUT TYPE="password" NAME="Password" REQUIRED="NO"><BR>
If you have forgotten your password <A href="ForgottenPassword.cfm"> Retreive your Password </A>
<INPUT TYPE="submit" VALUE="process">
----------------------------------------------------------
----------------------------------------------------------
InsertIntoDB.cfm
<CFQUERY DATASOURCE = "ONLINE" NAME = "GetUser">
SELECT UserName
FROM Users
WHERE UserName = '#Client.UserName#'
</CFQUERY>
<head>
<title>Untitled</title>
</head>
<body>
<CFIF #GetUser.RecordCount# EQ 1>
<CFINSERT DATASOURCE = "Online"
TABLENAME = "Users"
FORMFIELDS = '#Form.Title#'>
</CFIF>
<CFOUTPUT>
Your website now has a heading of <B>#title#</b><BR>
</cfoutput>
---------------------------------------------------------
If anyne can help...PLEASE!!!!!
Thanks
Sam
<INPUT TYPE="reset" VALUE="Clear">