Variable Help (I think - App Newbie)

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Variable Help (I think - App Newbie)

    This is probably very simple but I've spent hours trying to make it work and so
    far no luck.

    I have a form page that submits to a database (that part works fine). When the
    user submits the data, I want that data to display on the next page (Page Two)
    that loads, in a sort of summary page that shows the data entered from the form
    (Page One).

    So far everything works (the form is writing to the database correctly),
    except the summary page (Page Two) displays the data found in the first record
    of the database, and NOT the record that was just entered. I think I need to
    somehow 'bind' the two pages together with a variable so that Page Two
    recognizes the data from the form submitted on Page One? By the way, I'm using
    ASP and mySQL.

    Here are the two pages:
    [url]http://www.spring-hill-place.com/agent/NewContract.asp[/url] - submits to:
    [url]http://www.spring-hill-place.com/agent/PrintView.asp[/url]

    I appreciate any help anyone can offer.

    ChrisFelder Guest

  2. Similar Questions and Discussions

    1. Newbie: How do I set a variable using the URL?
      Hello everybody I am using php to get some info from my database using the following query statement: $Query="SELECT * FROM `articles` WHERE...
    2. Newbie : Incrementing variable in a loop
      Hi, I have a Mysql row with several similar fields such as PA1, PA2, PA3 ... I would like to be able to loop through these fiels using a...
    3. newbie Variable script error - Help!
      I've been using Director for nice linear keyframed animations for years -- thanks, MM! Now I would like to speed things up using Lingo (replacing...
    4. newbie: how to use global ASP variable in jscript?
      Hello, I want to have my function in jscript make use of the variables in an asp-page. How can I read the contents of a variable in the function...
    5. newbie: How to get all the variables from a previous from into one variable
      Hello, my form is a Survey form , it has different variables each time someone accesses it. I need to know how to gather all the variables into...
  3. #2

    Default Re: Variable Help (I think - App Newbie)

    Hi Chris. There are a number of ways to do this. I've taken the easy road
    myself and just purchased an extension that does what you are asking. It can
    be found here: [url]http://www.tom-muck.com/extensions/help/insertretrieve/[/url]

    If you want to figure it out other ways, do a web search for "retrieve
    record ID after insert" and there will be a number of matches for you to
    look through.



    "ChrisFelder" <cf@chrisfelder.com> wrote in message
    news:d5qobo$6jp$1@forums.macromedia.com...
    > This is probably very simple but I've spent hours trying to make it work
    > and so
    > far no luck.
    >
    > I have a form page that submits to a database (that part works fine). When
    > the
    > user submits the data, I want that data to display on the next page (Page
    > Two)
    > that loads, in a sort of summary page that shows the data entered from the
    > form
    > (Page One).
    >
    > So far everything works (the form is writing to the database correctly),
    > except the summary page (Page Two) displays the data found in the first
    > record
    > of the database, and NOT the record that was just entered. I think I need
    > to
    > somehow 'bind' the two pages together with a variable so that Page Two
    > recognizes the data from the form submitted on Page One? By the way, I'm
    > using
    > ASP and mySQL.
    >
    > Here are the two pages:
    > [url]http://www.spring-hill-place.com/agent/NewContract.asp[/url] - submits to:
    > [url]http://www.spring-hill-place.com/agent/PrintView.asp[/url]
    >
    > I appreciate any help anyone can offer.
    >

    Zachariah Crow Guest

  4. #3

    Default Re: Variable Help (I think - App Newbie)

    Thank you; I posted this in another forum and got my answer - I just needed to
    sort the records in decending order of the time sumitted. Then it pulls the
    most recent one automatically. I'm using the time the record is submitted as
    the primary index (including minutes and seconds) so the likelihood that two
    simultaneously submit records at the same second is very unlikely. There aren't
    many people using this application at the same time.

    Thanks for the reply.

    ChrisFelder 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