On 9/4/00, Magnus Wallin penned:
>Hey folks.
>
>Was doing an implementation between two sites and I ran into a little problem.
>In their code they are using GET instead of POST in the <FORMs>
>
>And when I submit I get a querystring with variblenames that are
>duplicate (Yes all INPUT-fieldnames are named the same).
>
>If it would have been a POST all the data would have ended up in a List.
>But how do I do the same with the GET function?
This will work. Once you set the values you can do what you want with
them. Append them to your own list or whatever.
<cfloop index="var" list="#cgi.query_string#" delimiters="&">
<cfset myvalue = right(var, len(var) - find("=", var))>
<cfset myvariable = left(var, find("=", var) - 1)>
#myvariable#<br>
#myvalue#<p>
</cfloop>
As usual, wait a couple hours and someone will come up with something better.
--
Bud Schneehagen - Tropical Web Creations
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.