Parameter Search Using Form Variable

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

  1. #1

    Default Parameter Search Using Form Variable

    I have a connection to the SQL Server 2000 database and a data set made up a a
    collection of personnel records. I set up the data set with a parameter, which
    is a text field on a form. I want the user to be able to submit all or part of
    a name and retrieve the matching records.

    I have a results table set up on my form but when I attempt to view the
    results in my browser, the results area does not show.

    I cannot determine whether the form variable is not passing to the query or
    whether some other condition blocks the display of the retrieved
    records.:confused;

    sbrenier Guest

  2. Similar Questions and Discussions

    1. Pass URL Parameter from html form to flash form
      In CF, I have a link to a form to update a students attendance; takeattendancehv1.cfm?StudentID=#allstudents.StudentID# . I'm using a flash form in...
    2. variable in an object parameter?
      This may be a very simple post or may be something that shows my lack of understanding of html, but... I am trying to create an object that is a...
    3. interpolating a variable with a request parameter
      Try with $q->param("qty$i"); thereis no variable interpolation in '' but when u use "" variable interpolation works. regards, KM...
    4. variable as a parameter
      <?php echo "<frame src=http://localhost/example.php?first=first name = top>"; echo "<frame src=http://localhost/test.php?first=first name =...
    5. variable in function parameter
      Hello. Let's say I have something like this: function aa($test) { $a = 8; echo $test; } $a = 2; aa("a is ". ($a>5?"greater":"equal to or...
  3. #2

    Default Re: Parameter Search Using Form Variable

    Hi,

    Some suggestions:

    1) Check to see whether you are using POST or GET as the method in your
    form. If one isn't working, try the other.
    2) On the results table/page, make sure that you are requesting a Form
    Variable rather than a QueryString
    Request.Form("namefield") rather than Request.QueryString("namefield")
    3) Kinda obvious, but make sure that you are searching for a name that you
    know exists in your database!
    4) On your results page, set up a Show If Empty and Show If Not Empty
    behaviour, with a specific message in each. That way, you'll know if the
    results are basically "none" or if it IS finding results but just isn't
    displaying them (would narrow down your issue if nothing else).
    5) Your select statement should read similar to:
    SELECT * FROM tablename WHERE namefield LIKE '%varName%'

    varName % Request.Form("namefield")

    Hope this helps. Just some ideas really.
    Nath.

    "sbrenier" <webforumsuser@macromedia.com> wrote in message
    news:d3jv82$nlp$1@forums.macromedia.com...
    >I have a connection to the SQL Server 2000 database and a data set made up
    >a a
    > collection of personnel records. I set up the data set with a parameter,
    > which
    > is a text field on a form. I want the user to be able to submit all or
    > part of
    > a name and retrieve the matching records.
    >
    > I have a results table set up on my form but when I attempt to view the
    > results in my browser, the results area does not show.
    >
    > I cannot determine whether the form variable is not passing to the query
    > or
    > whether some other condition blocks the display of the retrieved
    > records.:confused;
    >

    Nathon Jones 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