Cold fusion XML please help.

Discussion in 'Programming' started by jennypretty, Jul 23, 2008.

  1. #1
    Hello,

    I created a webpage on server 1 (server1.com/form.cfm) with Yes/No field, Yes to be checked by default and store this in session. When I click on "Submit" from this form, it points to another server (ex: server2.com/action.cfm). From server1, it initializes and manages variables by assigning session values and form values to session variables.

    I created a another file called "req.cfm" using XML to capture these values.

    When i view a report online from Server2, there are 'Unknown' values, instead of Yes/No values.

    Can anyone please help me? why have 'Unknown' values on the output?

    here is my code:

    <input name="iconsent" id="a_yes" type="radio" value="yes" checked>I authorize<br />
    <input name="iconsent" id="a_no" type="radio" value="no">I do not authorize
    -----------------------------
    req.cfm
    <cfif not IsEmpty("session.consent")><cfset remote["consent"]=#trim(session.consent)#></cfif>

    Thanks.
     
    jennypretty, Jul 23, 2008 IP
  2. phydiux

    phydiux Peon

    Messages:
    17
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You're not really explaining the problem very well - If you're posting variables from server1 to server2, then req.cfm on server1 will never have those form values defined. Of course, you're also saying that you use xml to capture these values, which isn't possible. Are you trying to send server2 a wddx packet or something old-school like that?

    The other issue you've got is that the session information on server1 isn't the same as the session information on server2 - they're different. If you're setting session variables on server1, server2 will not have access to them.

    If you can post more code, like the code to all three files, then that would help someone help you out.
     
    phydiux, Jul 23, 2008 IP