EasyCFM.COM ColdFusion Forums / PHP to CFML / Quick Conversion

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: Quick Conversion

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts last

hockeypfef
07-09-2007 @ 1:20 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Senior Member
Posts: 194
Joined: Apr 2006

I have been working on this all morning, but I really don't know much php.

How do I convert this to cfm:

while(list($key, $value) = each($HTTP_POST_VARS))


Thanks,
Chris
http://www.hockeypFeF.net

mquack
07-09-2007 @ 6:20 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Moderator
Posts: 1544
Joined: Jan 2005

I don't know jack about php, but that appears to be running a loop of the form variables.  What's it doing with them?  I'm not sure.  But you can loop over the FORM struct and play with that to try and duplicate whatever the php site does.


<cfloop collection="#form#" index="thisField">
   <!--- do something with #thisField# --->
</cfloop>



www.rachelqueensg.com
Amazon Wish List


Website Designed and Developed by Pablo Varando.