Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GET method form manipulation 1

Status
Not open for further replies.

mickjbud

Programmer
Jun 13, 2002
48
GB
Hi all

I am trying to process a form using the GET method. My scenario is this. I have a page on a server that is expecting a GET request, I cannot change this. I have a form that I want to get values from to create a url i.e etc... However when I try to do this with the GET method I am coming up against a brick wall.

I need to use the CFHTTP method because I want the same form page to reload and call the url but do not konw how to pass the form variables to the CFHTTP part.

I can do this using the POST method however the page on the receiving server is expecting GET.

I usually code in PHP, ASP.net but have never really looked at CF.

Any help is really appreciated

TIA

Mick

mymapofseychelles
eWOC
LookandBookIt
Rotography
 
I'm sorry, I'm not understanding your question.

you want to submit a form to a .net form handler?

Why doesn't the following work for you?
Code:
<form method = "get" action = "[URL unfurl="true"]http://thissite.com/dosomething.aspx">[/URL]
<input type = "text" name = "value1" /><br />
<input type = "text" name = "value2" />
</form>


Vegans are friends, not food...
 
Thanks for your reply.

I am wanting to send the data through the cfhttp request and not as a page request.

I can post using the <cfhttp url="http...." method = "post"
result="result">
<cfhttparam type="post" value = "#form.user#">

however I want to use the GET method and I am unable to capture the form info. Like I said I have not coded in CF before but code in PHP and .NET so web forms are not new to me.

mymapofseychelles
eWOC
LookandBookIt
Rotography

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top