That's a good idea too.  So in your form you would set form action to:  
something.cfm and then in something.cfm you would have:

<CFSET client.localip = cgi.remote_addr >
<cfhttp url="whatever.pl" method="post">
        <cfhttpparam type="formfield" name"fieldname" value="form.fieldname" />
        ....
</cfhttp>
<cfoutput>#cfhttp.filecontent#</cfoutput>


You could try this.  I didn't test my code above for typos. :)

Dave

-----Original Message-----
From: Douglas Knudsen [mailto:[EMAIL PROTECTED]
Sent: Monday, July 25, 2005 11:03 AM
To: CF-Talk
Subject: Re: Restricting Access


ugh, setting anything using CF occurs server side.

now, why must you post form the client to the perl script?  How about
posting to a CF page, set the variable you want, then use CFHTTP to
post to the perl script.

DK

On 7/25/05, Ian Vaughan <[EMAIL PROTECTED]> wrote:
> This is the problem I am having and it has to be posting to a perl
> script!!!,  is it possible to set the client variable when the user
> clicks the submit button on the form, perhaps by setting a hidden field
> ??
> 
> I have tried setting the hidden field below
> 
> <input type="hidden" name="sent" value="yes">
> 
> Then using the code below to set a client variable when the form is
> submitted but still no luck!
> 
>  <cfif isDefined("form.sent")>
> 
>   <cfset client.localip = #cgi.remote_addr#>
> 
> </cfif>
> 
> How can I set the client variable to their IP Address when they submit
> the form ???
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Robertson-Ravo, Neil (RX)
> [mailto:[EMAIL PROTECTED]
> Sent: 25 July 2005 15:10
> To: CF-Talk
> Subject: RE: Restricting Access
> 
> How are you setting this client variable if the calling page is posting
> to a perl script?  I am not sure how this is possible?  You would need
> to have form posting to cf page which sets the client var.
> 
> 
> 
> -----Original Message-----
> From: Ian Vaughan [mailto:[EMAIL PROTECTED]
> Sent: 25 July 2005 15:15
> To: CF-Talk
> Subject: RE: Restricting Access
> 
> Still not working very frustrating, can you see from the code why the
> form keeps displaying instead of the STOP message as I have submitted
> the form !
> 
> When I run a cfdump var="#client.localip#"> it comes back with an error
> ' Element LOCALIP is undefined in CLIENT.  '
> 
> <cfif isDefined("client.localip") and client.localip EQ
> #cgi.remote_addr# >
>  STOP!
>  <cfabort>
> </cfif>
> 
> 
>  <cfif isDefined("form.v4")>
>   <cfset client.localip = #cgi.remote_addr#> </cfif>
> 
> 
> 
> <form action="cgi-bin/subqs.pl" method="post" target="_top"> <input
> type="hidden" name=":SURVEY:" value="Questionnaire2"> <input
> type="hidden" name=":EMAIL:" value="[EMAIL PROTECTED]"> <input
> type="hidden" name=":USERID:" value="069/001">
> 
> <input type="hidden" name="V4" value=""> <input type="hidden" name="V20"
> value=""> <input type="hidden" name="V21" value="">
> 
> </form>
> 
> 
> 
> 
> 
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212753
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