maybe you want:
Ok, I'm trying to setup a handler to take data from a HTTP post, and store it into adatabase, This is what I came up with, but its not right. Can someone tell me what I am doingwrong.postPostMessageR :: Handler RepJsonpostPostMessageR = doliftIO $ putStrLn "POST"CharecterPost clients _ <- getYesod(text, charecter) <- dotext <- lookupPostParam "text"charecter <- lookupPostParam "charecter"case (text, charecter) of(Just text', Just charecter') -> return (text', charecter')_ -> invalidArgs ["text not provided."]jsonToRepJson $ jsonMap (("text", text'),( "charecter", charecter'))--Zach
_______________________________________________
web-devel mailing list
web-devel@haskell.org
http://www.haskell.org/mailman/listinfo/web-devel