Hi Ryan, Definately, GJ has been very help and patient with me whenever I have posted a question and has always pretty much got me out of all my stick situations!, theres no hesitation on my part to vote for GJ...Umm....How do I do it??
GJ, You have been most helpful and I appreciate it. Thanx.
WIth regards to th CF Param thing, What I tried to do was to delete the client.username variable that was being picked up somehow (It was late and I was doing silly programming !). I think Ive deleted it now so Im not having that problem.
WHat I've done now is loop through the query and create a link to each record to a second page to view the particular username record, however when I pass the Var to the nxt page, the username variable is not being displayed therefore the query to search for a username variable (that should be passed is not being performed.
Below is the revised code:
Page 1:
<CFLOOP INDEX = "client.username" LIST="#GetClientVariablesList()#">
<CFSET deleted=deleteClientVariable("client.username"

>
</cfloop>
<CFOUTPUT>#client.username#....If I cant see anything then Ive deleted the client variable<BR><BR></cfoutput>
<CFQUERY NAME ="WebPageResults" DATASOURCE="Online">
SELECT username, title,heading,section1heading1,section1text1,section2heading2,section2text2
FROM UserSpecific
WHERE title LIKE '%#Form.Criteria#%'
</cfquery>
<html>
<head>
<title>Webpage collection results</title>
</head>
<body>
<!--- <CFOUTPUT QUERY="WebPageResults"> --->
<CFIF #form.criteria# is "">
Im sorry, no results match the criteria you entered
<CFELSE>
<!--- <CFOUTPUT>#WebPageResults.username# user websites Found for "#Form.Criteria#".<BR></cfoutput> --->
<CFLOOP QUERY="WebPageResults">
<CFOUTPUT>
<BR>A website created by #WebPageResults.username# was Found for the criteria "#Form.Criteria#".<BR>
<FORM ACTION="WebSearchSiteView1.cfm?#username#=#webpageresults.username#" METHOD="POST">
<INPUT TYPE="Hidden" NAME="#username#" Value="#username#">
<INPUT TYPE="submit" VALUE="View">
</form>
</cfoutput>
</CFLOOP>
</cfif>
Im using hidden variables and within the input tags, the it displays both usernames (I have two username in the DB and I am verifying this by viewing "Source" in IE5.
But the action pae, I use a CFOUT to view #username# but it does not display anything. Heres the action page code snippet:
<cfoutput>"#form.username#"</CFOUTPUT>
<CFQUERY DATASOURCE= "ONLINE" NAME="Visitorsiteview">
SELECT *
FROM UserSpecific
WHERE Username= '#username#'
</CFQUERY>
<CFOUTPUT>
#Username#<BR>
#Visitorsiteview.columnlist#<BR>
#Visitorsiteview.currentrow#<BR>
#Visitorsiteview.recordcount#<BR>
</cfoutput>
<!--- Querying the database and displaying the webpage the user created on a previous session stored in the DB --->
<CFOUTPUT QUERY= "Visitorsiteview">
<HTML>
<HEAD>
<TITLE>#title#</TITLE>
</HEAD>