I have the following code that supposed to check by their IP address if
a user has submitted a feedback form, if they have and try to visit the
page again they get STOP! If they have not submitted a form before they
see the form.

However how can I set the first line <cfif isDefined etc..  To set the
client.localip variable when the user has submitted the form ????

 <cfif isDefined("form.submit???????????")> 

   <cfset client.localip = #cgi.remote_addr#>

</cfif>

<cfif isDefined("client.localip") and client.localip EQ
#cgi.remote_addr# >
  STOP!
  <cfabort>
</cfif>




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212719
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to