• 0

Coldfusion and iWeb html fies


Question

I'm new to this web stuff, I recently did a site in iweb09 I know.. I should've used dreamweaver, but thats what I had at the time, but I now want to do something where users can sign up -> log in and if they click on any of the affiliates and purchase something, they receive rewards points that they can use later to purchase other items. And when they log in it will show how much points they have and what they purchased. I created the database, did the coldfusion code, but for some reason when I put the coldfusion into my html code and save as cfm it doesn't work.

What am I doing wrong?

Should I just go back do the whole site over again in Dreamweaver?

or can this be fixed?

Thnx in Advance :)

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

i haven't used CF in a loooong time, does the server that is hosting your site support coldfusion?

easy check is just make a cfm file with only

<cfset name = "jimmyjoejoe">
<CFOUTPUT>
Hello, #name#, Welcome to my website!
</CFOUTPUT>

if it says jimmyjoejoe and not #name# then you at least know CF is working.

Link to comment
Share on other sites

  • 0

By "implement it into html" do you mean change the file extension from .cfm to .html? The configuration may not be setup for CF to parse on anything other than .cfm

Link to comment
Share on other sites

  • 0

I was trying to insert my index.cfm into my index.html, or am I suppose to insert my html code into the cfm. I'm not sure what I need to be doing or if I'm even on the right track, but right now I have just my html that consist of 4 pages then I got my cfm files

which are:

index.cfm,

CreateUser.cfm,

ForgetPassword.cfm,

ForgetPasswordEmail.cfm,

login_process.cfm

register.cfm

I'm trying to add a login / password to the html page so how do I make it run through CF

my index.cfm reads

<html>

<head>

<title>Clarke</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body>

<cfform action="login_process.cfm" method="post">

<table>

<tr><td>E-mail Address: </td><td><cfinput type = "text" name="EmailAddress" value=""></td></tr>

<tr><td>Password: </td><td><cfinput type= "password" name="Password" value=""></td></tr>

<tr></tr>

<tr><td colspan="2" align="center"><cfinput type="submit" name="submit" value="Login"></td></tr>

</table>

</cfform>

<b><a href="Register.cfm">Create an account</a>.</p><br>

<b><a href="ForgotPassword.cfm">Forgot your password?</a>.</p>

</body>

</html>

is this correct so far?

how do I put this into the index.html page

or

do I put my html code into the cfm page?

Link to comment
Share on other sites

  • 0

I don't have the knowledge about coldfusion so thanks guys for these posts i think i clear out my knowledge with all of yours posts..so thanks again..

Link to comment
Share on other sites

  • 0
or am I do I put my html code into the cfm page?

that's it right there. Take the page you showed, and save that as index.cfm, and run it.

I haven't used CFML, in a couple years, but there was a tag simply called "cflogin" that you could use in your index.cfm page, in conjunction with your application.cfm page, to automatically check for a login cookie, if not it loads your login form and breaks, else it loads index page with the user logged in.

http://livedocs.adobe.com/coldfusion/6/CFM.../Tags-pt169.htm

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.