prob posting form data to printable page

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default prob posting form data to printable page

    The following code is for a result page. I was wanting to know if i can post
    the search result to a printable page.
    I have got this woking fine for a normal form but I'm not really sure where to
    begin with this.
    the items I want to send are

    #session.cart#
    #session.cart#


    ------------------------------------------------> result
    page<---------------------------------------------------------------------------
    ----

    <cfif isdefined("form.action")>
    <cfif trim(form.action) eq "+">
    <cf_addItem
    id="#form.id#"
    name="#form.name#"
    price="#form.price#"
    quantity="#form.quantity#"
    >
    <cfelseif trim(form.action) eq "remove">
    <cf_dropItem name="#form.name#">
    </cfif>
    </cfif>
    <td ><cfoutput>
    <form ACTION="healthsapporoindex.cfm" method="post">
    <input name="action2" type="submit" value="main
    list" class="addbutton"/></form>
    </cfoutput>
    <cfif isdefined("session.cart")>
    <cfif IsStruct(session.cart)>
    <cfset subtotal = 0>
    <cfoutput>
    <cfloop collection="#session.cart#" item="i">

    <td valign=top><div align="left"><a
    href="itemDetail.cfm?id=#session.cart#">#session.c art#</a></div></td>
    <td valign=top><div align="left"><a
    href="itemDetail.cfm?id=#session.cart#">#session.c art#</a></div></td>

    <form method="post">
    <input type="hidden" name="name"
    value="#session.cart#">
    <input type="hidden" name="id" value="#session.cart#">
    <input type="hidden" name="price"
    value="#session.cart#">
    <input name="action" type="submit" value="remove"
    class="addbutton"/>
    </form>
    </cfloop>
    </cfoutput>
    </cfif>
    </cfif>

    ------------------------------------------------> result
    page<---------------------------------------------------------------------------
    ----

    I had thought of something like this

    <cfoutput><form name="form" method="post" action="">
    #form.session.cart#
    #form.session.cart#
    </form>
    </cfoutput>


    Regards Mark

    quiero mas Guest

  2. Similar Questions and Discussions

    1. Form Data not posting...
      Hi, Here is the action script from movie. When I click submit the from data loads I can see it with trace. However when it gets posted to CFpage...
    2. ASP.NET not posting form data
      Dear all, We are a library and are trying to get an ASP.NET form page working on our site. the buttons and fields appear, but we are still having...
    3. problem posting data from asp form
      I am running IIS5, Win2k Server, and .Net Framework 1.1. For some reason asp forms will not post data. So I have a form with a text box. The...
    4. List Box in form not posting data
      I have a list box with the following: Row Source Type: Table/Query Row Source: <Saved Query with two columns selected> Column count:2 Multi...
    5. posting data from a web form to other one.
      Hi, I have a frameset and two aspx page. How can post data from one web form to other one. Thanks
  3. #2

    Default Re: prob posting form data to printable page

    sorry to double post but it would be great if someone could give me a little feed back
    quiero mas Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139